summaryrefslogtreecommitdiff
path: root/test/option_test.rb
diff options
context:
space:
mode:
authorLee Jarvis <lee@jarvis.co>2011-11-22 08:35:45 -0800
committerLee Jarvis <lee@jarvis.co>2011-11-22 08:35:45 -0800
commit43d986e6157d6146a908f51d3cf88a791b165a4b (patch)
tree0a002a182b87eeed6f68c51c0f5131c104dc0cda /test/option_test.rb
parentac326d3f81a3628bd970cc229d613df2e3caa4f9 (diff)
downloadslop-43d986e6157d6146a908f51d3cf88a791b165a4b.tar.gz
ensure short options accept an appended =
Diffstat (limited to 'test/option_test.rb')
-rw-r--r--test/option_test.rb1
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