summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/parser_test.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/parser_test.rb b/test/parser_test.rb
index 0dc361c..85ba7e0 100644
--- a/test/parser_test.rb
+++ b/test/parser_test.rb
@@ -61,5 +61,10 @@ describe Slop::Parser do
it "returns all unparsed arguments" do
assert_equal %w(foo argument), @parser.arguments
end
+
+ it "does not return --" do
+ @parser.parse %w(-v -- --name lee)
+ assert_equal %w(--name lee), @parser.arguments
+ end
end
end