Sha256: 0d21bb6bc6d854a0d4a189d1ef22d0dcca81f972131ab7bd8df8ee9be09d8618
Contents?: true
Size: 503 Bytes
Versions: 3
Compression:
Stored size: 503 Bytes
Contents
require 'test_helper' module OptimistXL 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 |
---|---|
optimist_xl-3.3.0 | test/optimist_xl/command_line_error_test.rb |
optimist_xl-3.2.0 | test/optimist_xl/command_line_error_test.rb |
optimist_xl-3.1.1 | test/optimist_xl/command_line_error_test.rb |