diff options
author | Victor Gama <hey@vito.io> | 2023-02-15 11:42:36 -0300 |
---|---|---|
committer | Victor Gama <hey@vito.io> | 2023-02-15 11:43:06 -0300 |
commit | becc0305239c2885affb1f57419afac3e5418a88 (patch) | |
tree | 8f36d5b4c65685653e0c8ef3c344d5fe75564fd6 /test/error_test.rb | |
parent | 556f88322951b4a64c7bdf6f68f3e0a970940fb7 (diff) | |
download | slop-becc0305239c2885affb1f57419afac3e5418a88.tar.gz |
Augment tests for validated types
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 |