aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike McQuaid2016-09-27 13:02:07 +0100
committerMike McQuaid2016-09-27 13:02:07 +0100
commitcbae10a732f18bd8b96edd114a5aa7904cdbb433 (patch)
treebd0c814ff2bbfc78743a926c547f5d0d5add7953
parent0c472ea6d9a5f96775c52d484064dddb871043e7 (diff)
downloadbrew-cbae10a732f18bd8b96edd114a5aa7904cdbb433.tar.bz2
test/test_custom_command: fix rubocop style.
-rw-r--r--Library/Homebrew/test/test_custom_command.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/Library/Homebrew/test/test_custom_command.rb b/Library/Homebrew/test/test_custom_command.rb
index b3cd39f27..bc27e2121 100644
--- a/Library/Homebrew/test/test_custom_command.rb
+++ b/Library/Homebrew/test/test_custom_command.rb
@@ -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}",