summaryrefslogtreecommitdiff
path: root/test/option_test.rb
diff options
context:
space:
mode:
authorLee Jarvis <lee@jarvis.co>2012-01-12 14:27:31 +0000
committerLee Jarvis <lee@jarvis.co>2012-01-12 14:27:31 +0000
commit086707ec2661afda0957ef975282cba987a379b5 (patch)
tree8107852ebe5cd9c2134fc6f9241966f19984cf1a /test/option_test.rb
parent98655067cbe8294057407d42033fd09c9fe61140 (diff)
downloadslop-086707ec2661afda0957ef975282cba987a379b5.tar.gz
remove Option::DEFAULT_TYPES and push types into ivar
Diffstat (limited to 'test/option_test.rb')
-rw-r--r--test/option_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/option_test.rb b/test/option_test.rb
index cfe7620..4b8f68f 100644
--- a/test/option_test.rb
+++ b/test/option_test.rb
@@ -83,12 +83,12 @@ class OptionTest < TestCase
assert_equal 'rab', opt.value
end
+ # end type casting tests
+
test "using a default value as fallback" do
opts = Slop.new
opt = opts.on :f, :argument => :optional, :default => 'foo'
opts.parse %w'-f'
assert_equal 'foo', opts[:f]
end
-
- # end type casting tests
end \ No newline at end of file