Skip to content

Commit

Permalink
Correct RuboCop offenses
Browse files Browse the repository at this point in the history
  • Loading branch information
mvz committed Jan 15, 2022
1 parent 239c163 commit 2660b3d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/aruba/processes/in_process.rb
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def stderr(*)
#
# @param *input [Array of String]
def write(*input)
@stdin.write *input
@stdin.write(*input)
end

# Close io
Expand Down
4 changes: 2 additions & 2 deletions spec/aruba/processes/in_process_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion spec/aruba/processes/spawn_process_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 2660b3d

Please sign in to comment.