diff options
Diffstat (limited to 'Library/Homebrew/formula_assertions.rb')
| -rw-r--r-- | Library/Homebrew/formula_assertions.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/formula_assertions.rb b/Library/Homebrew/formula_assertions.rb index bdcf0aef2..b940f5b0a 100644 --- a/Library/Homebrew/formula_assertions.rb +++ b/Library/Homebrew/formula_assertions.rb @@ -24,7 +24,7 @@ module Homebrew include Test::Unit::Assertions # Returns the output of running cmd, and asserts the exit status - def shell_output(cmd, result=0) + def shell_output(cmd, result = 0) ohai cmd output = `#{cmd}` assert_equal result, $?.exitstatus @@ -33,7 +33,7 @@ module Homebrew # Returns the output of running the cmd with the optional input, and # optionally asserts the exit status - def pipe_output(cmd, input=nil, result=nil) + def pipe_output(cmd, input = nil, result = nil) ohai cmd output = IO.popen(cmd, "w+") do |pipe| pipe.write(input) unless input.nil? |
