diff options
author | Lee Jarvis <lee@jarvis.co> | 2011-11-22 08:35:45 -0800 |
---|---|---|
committer | Lee Jarvis <lee@jarvis.co> | 2011-11-22 08:35:45 -0800 |
commit | 43d986e6157d6146a908f51d3cf88a791b165a4b (patch) | |
tree | 0a002a182b87eeed6f68c51c0f5131c104dc0cda /test/option_test.rb | |
parent | ac326d3f81a3628bd970cc229d613df2e3caa4f9 (diff) | |
download | slop-43d986e6157d6146a908f51d3cf88a791b165a4b.tar.gz |
ensure short options accept an appended =
Diffstat (limited to 'test/option_test.rb')
-rw-r--r-- | test/option_test.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/option_test.rb b/test/option_test.rb index 1aabefc..fed3647 100644 --- a/test/option_test.rb +++ b/test/option_test.rb @@ -28,6 +28,7 @@ class OptionTest < TestCase test 'expects an argument if long option is suffixed with =' do assert option(:f, :foo=).expects_argument? assert option('f', 'foo=').expects_argument? + assert option(:f=).expects_argument? end test 'accepts an optional argument if optional is true' do |