diff options
Diffstat (limited to 'test/result_test.rb')
-rw-r--r-- | test/result_test.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/result_test.rb b/test/result_test.rb index 0efdfff..3fa61f6 100644 --- a/test/result_test.rb +++ b/test/result_test.rb @@ -32,6 +32,9 @@ describe Slop::Result do @options.string("--foo", default: "bar") @result.parser.parse %w() assert_equal "bar", @result[:foo] + + @result.parser.parse %w(--foo) + assert_equal "bar", @result[:foo] end it "handles custom finishing" do |