diff options
Diffstat (limited to 'test/parser_test.rb')
-rw-r--r-- | test/parser_test.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/parser_test.rb b/test/parser_test.rb index dcc3661..caee0dd 100644 --- a/test/parser_test.rb +++ b/test/parser_test.rb @@ -21,6 +21,11 @@ describe Slop::Parser do @result.parser.parse %w(--name=bob -p=123) assert_equal "bob", @result[:name] assert_equal 123, @result[:port] + + @options.string "--foo" + @result.parser.parse %w(--foo = =) + assert_equal "=", @result[:foo] + assert_equal %w(=), @result.args end it "parses arg with leading -" do |