Sha256: fe7883f330cab12a8f044ff50f04575c6184f222dd4c1dbdfdfcc9379614edb5
Contents?: true
Size: 500 Bytes
Versions: 3
Compression:
Stored size: 500 Bytes
Contents
require 'test_helper' module Trollop class CommandlineErrorTest < ::MiniTest::Test def test_class assert_kind_of Exception, cle("message") end def test_message assert "message", cle("message").message end def test_error_code_default assert_nil cle("message").error_code end def test_error_code_custom assert_equal(-3, cle("message", -3).error_code) end private def cle(*args) CommandlineError.new(*args) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
trollop-2.9.10 | test/trollop/command_line_error_test.rb |
trollop-2.9.9 | test/trollop/command_line_error_test.rb |
trollop-2.1.3 | test/trollop/command_line_error_test.rb |