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"