aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test/test_ARGV.rb
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Homebrew/test/test_ARGV.rb')
-rw-r--r--Library/Homebrew/test/test_ARGV.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/Library/Homebrew/test/test_ARGV.rb b/Library/Homebrew/test/test_ARGV.rb
index 7832f71e4..c28bf9c67 100644
--- a/Library/Homebrew/test/test_ARGV.rb
+++ b/Library/Homebrew/test/test_ARGV.rb
@@ -18,6 +18,10 @@ ARGV.extend ExtendArgvPlusYeast
class ARGVTests < Test::Unit::TestCase
+ def teardown
+ ARGV.reset
+ end
+
def test_ARGV
assert ARGV.named.empty?
@@ -31,7 +35,6 @@ class ARGVTests < Test::Unit::TestCase
end
def test_switch?
- ARGV.reset
ARGV.unshift "-ns"
ARGV.unshift "-i"
ARGV.unshift "--bar"