diff options
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/test/test_custom_command.rb | 4 |
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}", |
