aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2013-04-08 00:27:40 -0500
committerJack Nagel2013-04-08 00:27:47 -0500
commitef0e4c259fac1e3d08ef7855a69626c8f97338e8 (patch)
treeeec8db0d00b24767f684fb3c9ee2ef331f27c5b6 /Library
parent9dda9339ad600e652d80aa41cc9809509454eda7 (diff)
downloadbrew-ef0e4c259fac1e3d08ef7855a69626c8f97338e8.tar.bz2
Ensure ARGV is cleaned up
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/test/test_formula.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/Library/Homebrew/test/test_formula.rb b/Library/Homebrew/test/test_formula.rb
index e4b207e70..a61e473d4 100644
--- a/Library/Homebrew/test/test_formula.rb
+++ b/Library/Homebrew/test/test_formula.rb
@@ -119,24 +119,26 @@ class FormulaTests < Test::Unit::TestCase
end
def test_devel_active_spec
- ARGV.push '--devel'
+ ARGV << '--devel'
f = SpecTestBall.new
assert_equal f.devel, f.active_spec
assert_version_equal '0.2', f.version
assert_equal 'file:///foo.com/testball-0.2.tbz', f.url
assert_equal CurlDownloadStrategy, f.download_strategy
assert_instance_of CurlDownloadStrategy, f.downloader
+ ensure
ARGV.delete '--devel'
end
def test_head_active_spec
- ARGV.push '--HEAD'
+ ARGV << '--HEAD'
f = SpecTestBall.new
assert_equal f.head, f.active_spec
assert_version_equal 'HEAD', f.version
assert_equal 'https://github.com/mxcl/homebrew.git', f.url
assert_equal GitDownloadStrategy, f.download_strategy
assert_instance_of GitDownloadStrategy, f.downloader
+ ensure
ARGV.delete '--HEAD'
end