From 2660b3dca0b3a5c88eec74e56034a964b97635e8 Mon Sep 17 00:00:00 2001 From: Matijs van Zuijlen Date: Thu, 30 May 2019 14:24:41 +0200 Subject: [PATCH] Correct RuboCop offenses --- lib/aruba/processes/in_process.rb | 2 +- spec/aruba/processes/in_process_spec.rb | 4 ++-- spec/aruba/processes/spawn_process_spec.rb | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/aruba/processes/in_process.rb b/lib/aruba/processes/in_process.rb index 0260db717..f5b387dd8 100644 --- a/lib/aruba/processes/in_process.rb +++ b/lib/aruba/processes/in_process.rb @@ -103,7 +103,7 @@ def stderr(*) # # @param *input [Array of String] def write(*input) - @stdin.write *input + @stdin.write(*input) end # Close io diff --git a/spec/aruba/processes/in_process_spec.rb b/spec/aruba/processes/in_process_spec.rb index 8fb7d0902..51483f835 100644 --- a/spec/aruba/processes/in_process_spec.rb +++ b/spec/aruba/processes/in_process_spec.rb @@ -156,14 +156,14 @@ def run_process(&block) let(:main_class) { stdin_runner } it 'writes single strings to the process' do - process.write "World" + process.write 'World' process.start process.stop expect(process.stdout).to eq "Hello, World!\n" end it 'writes multiple strings to the process' do - process.write "Wor", "ld" + process.write 'Wor', 'ld' process.start process.stop expect(process.stdout).to eq "Hello, World!\n" diff --git a/spec/aruba/processes/spawn_process_spec.rb b/spec/aruba/processes/spawn_process_spec.rb index 84dbe2eca..377073e9e 100644 --- a/spec/aruba/processes/spawn_process_spec.rb +++ b/spec/aruba/processes/spawn_process_spec.rb @@ -58,7 +58,7 @@ it 'writes multiple strings to the process' do process.start - process.write "hel", "lo\n" + process.write 'hel', "lo\n" process.stop expect(process.stdout).to eq "hello\n"