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 bfc4f7e..1099871 100644
--- a/test/parser_test.rb
+++ b/test/parser_test.rb
@@ -71,5 +71,10 @@ describe Slop::Parser do
@parser.parse %w(lee --name lee lee)
assert_equal %w(lee lee), @parser.arguments
end
+
+ it "correctly removes options that use =" do
+ @parser.parse %w(lee --name=lee lee)
+ assert_equal %w(lee lee), @parser.arguments
+ end
end
end