Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correct RuboCop offenses #444

Merged
merged 1 commit into from
Aug 16, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 4 additions & 4 deletions test/test_rake_file_utils.rb
Original file line number Diff line number Diff line change
Expand Up @@ -315,8 +315,8 @@ def test_sh_show_command

def test_sh_if_a_command_exits_with_error_status_its_full_output_is_printed
verbose false do
standard_output = 'Some output'
standard_error = 'Some error'
standard_output = "Some output"
standard_error = "Some error"
shell_command = "ruby -e\"puts '#{standard_output}';STDERR.puts '#{standard_error}';exit false\""
actual_both = capture_subprocess_io do
begin
Expand All @@ -342,13 +342,13 @@ def test_sh_if_a_command_exits_with_error_status_sh_echoes_it_fully
end

def assert_echoes_fully
long_string = '1234567890' * 10
long_string = "1234567890" * 10
shell_command = "ruby -e\"'#{long_string}';exit false\""
capture_subprocess_io do
begin
sh shell_command
rescue => ex
assert_match 'Command failed with status', ex.message
assert_match "Command failed with status", ex.message
assert_match shell_command, ex.message
else
flunk
Expand Down