diff options
| author | Jack Nagel | 2012-04-16 16:43:42 -0500 |
|---|---|---|
| committer | Jack Nagel | 2012-04-16 23:08:32 -0500 |
| commit | 31ccb052d77bb9aa3f762896f2e40b285ac16b34 (patch) | |
| tree | 2c9180685e7415d17ebd0cd21907f0e837f89d21 /Library/Homebrew/test/test_ARGV.rb | |
| parent | e0f6a8d07933f86df4d23b2364e1f63f473a22b8 (diff) | |
| download | homebrew-31ccb052d77bb9aa3f762896f2e40b285ac16b34.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.rb | 5 |
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" |
