aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Homebrew/test')
-rw-r--r--Library/Homebrew/test/test_updater.rb7
1 files changed, 3 insertions, 4 deletions
diff --git a/Library/Homebrew/test/test_updater.rb b/Library/Homebrew/test/test_updater.rb
index 81e60822a..410e54423 100644
--- a/Library/Homebrew/test/test_updater.rb
+++ b/Library/Homebrew/test/test_updater.rb
@@ -16,8 +16,8 @@ class UpdaterTests < Homebrew::TestCase
@outputs[cmd] << output
end
- def `(cmd, *args)
- cmd = "#{cmd} #{args*' '}".strip
+ def `(*args)
+ cmd = args.join(" ")
if @expected.include?(cmd) and !@outputs[cmd].empty?
@called << cmd
@outputs[cmd].shift
@@ -25,8 +25,7 @@ class UpdaterTests < Homebrew::TestCase
raise "#{inspect} unexpectedly called backticks: `#{cmd}`"
end
end
-
- alias safe_system ` #`
+ alias_method :safe_system, :`
def expectations_met?
@expected == @called