diff options
Diffstat (limited to 'Library/Homebrew/test')
| -rw-r--r-- | Library/Homebrew/test/test_ARGV.rb | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/Library/Homebrew/test/test_ARGV.rb b/Library/Homebrew/test/test_ARGV.rb index 6d2c19f53..7403acf7c 100644 --- a/Library/Homebrew/test/test_ARGV.rb +++ b/Library/Homebrew/test/test_ARGV.rb @@ -21,8 +21,13 @@ class ArgvExtensionTests < Homebrew::TestCase end def test_argv_named - @argv << 'mxcl' << '--debug' << '-v' - assert_equal 1, @argv.named.length + @argv << "foo" << "--debug" << "-v" + assert_equal %w[foo], @argv.named + end + + def test_options_only + @argv << "--foo" << "-vds" << "a" << "b" << "cdefg" + assert_equal %w[--foo -vds], @argv.options_only end def test_empty_argv |
