diff options
| author | Mike McQuaid | 2016-09-27 13:02:07 +0100 |
|---|---|---|
| committer | Mike McQuaid | 2016-09-27 13:02:07 +0100 |
| commit | cbae10a732f18bd8b96edd114a5aa7904cdbb433 (patch) | |
| tree | bd0c814ff2bbfc78743a926c547f5d0d5add7953 /Library | |
| parent | 0c472ea6d9a5f96775c52d484064dddb871043e7 (diff) | |
| download | brew-cbae10a732f18bd8b96edd114a5aa7904cdbb433.tar.bz2 | |
test/test_custom_command: fix rubocop style.
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}", |
