Skip to content
Snippets Groups Projects
Commit cbae10a7 authored by Mike McQuaid's avatar Mike McQuaid
Browse files

test/test_custom_command: fix rubocop style.

parent 0c472ea6
No related branches found
No related tags found
No related merge requests found
......@@ -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}",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment