Correct RuboCop offenses
This commit is contained in:
parent
0157758371
commit
3e955f2136
|
@ -315,8 +315,8 @@ class TestRakeFileUtils < Rake::TestCase # :nodoc:
|
||||||
|
|
||||||
def test_sh_if_a_command_exits_with_error_status_its_full_output_is_printed
|
def test_sh_if_a_command_exits_with_error_status_its_full_output_is_printed
|
||||||
verbose false do
|
verbose false do
|
||||||
standard_output = 'Some output'
|
standard_output = "Some output"
|
||||||
standard_error = 'Some error'
|
standard_error = "Some error"
|
||||||
shell_command = "ruby -e\"puts '#{standard_output}';STDERR.puts '#{standard_error}';exit false\""
|
shell_command = "ruby -e\"puts '#{standard_output}';STDERR.puts '#{standard_error}';exit false\""
|
||||||
actual_both = capture_subprocess_io do
|
actual_both = capture_subprocess_io do
|
||||||
begin
|
begin
|
||||||
|
@ -342,13 +342,13 @@ class TestRakeFileUtils < Rake::TestCase # :nodoc:
|
||||||
end
|
end
|
||||||
|
|
||||||
def assert_echoes_fully
|
def assert_echoes_fully
|
||||||
long_string = '1234567890' * 10
|
long_string = "1234567890" * 10
|
||||||
shell_command = "ruby -e\"'#{long_string}';exit false\""
|
shell_command = "ruby -e\"'#{long_string}';exit false\""
|
||||||
capture_subprocess_io do
|
capture_subprocess_io do
|
||||||
begin
|
begin
|
||||||
sh shell_command
|
sh shell_command
|
||||||
rescue => ex
|
rescue => ex
|
||||||
assert_match 'Command failed with status', ex.message
|
assert_match "Command failed with status", ex.message
|
||||||
assert_match shell_command, ex.message
|
assert_match shell_command, ex.message
|
||||||
else
|
else
|
||||||
flunk
|
flunk
|
||||||
|
|
Loading…
Reference in New Issue