test/test_custom_command: fix rubocop style.

This commit is contained in:
Mike McQuaid 2016-09-27 13:02:07 +01:00
parent 0c472ea6d9
commit cbae10a732

View File

@ -6,7 +6,9 @@ class IntegrationCommandTestCustomCommand < IntegrationCommandTestCase
cmd = "int-test-#{rand}"
file = "#{path}/brew-#{cmd}"
File.open(file, "w") { |f| f.write "#!/bin/sh\necho 'I am #{cmd}'\n" }
File.open(file, "w") do |f|
f.write "#!/bin/sh\necho 'I am #{cmd}'\n"
end
FileUtils.chmod 0777, file
assert_match "I am #{cmd}",