diff options
Diffstat (limited to 'test/error_test.rb')
-rw-r--r-- | test/error_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/error_test.rb b/test/error_test.rb index 341fa75..8ea9069 100644 --- a/test/error_test.rb +++ b/test/error_test.rb @@ -72,8 +72,8 @@ describe Slop::InvalidOptionValue do end it "does not raise when errors are suppressed" do - opts = Slop::Options.new(validate_types: true, suppress_errors: true) - opts.integer "-n", "--number", default: 10 + opts = Slop::Options.new(suppress_errors: true) + opts.integer "-n", "--number", default: 10, validate_type: true r = opts.parse %w(-n foo) assert_equal(10, r[:n]) end |