aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test/test_ARGV.rb
diff options
context:
space:
mode:
authorJack Nagel2012-04-16 16:43:42 -0500
committerJack Nagel2012-04-16 23:08:32 -0500
commit84a4935bb5a9c39e6a58e9f848ce1be93d3451b4 (patch)
tree6ca52d0d209c36730fa5e99f957c1e4c93f140da /Library/Homebrew/test/test_ARGV.rb
parentd502742e6d566c36797629c12c45bc41e509451a (diff)
downloadbrew-84a4935bb5a9c39e6a58e9f848ce1be93d3451b4.tar.bz2
tests: setup and teardown cleanups
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
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"