Sha256: c88f776564ff3d394dbdf841a0d4140168b0622e018c2165807b3b08b52f8cfb
Contents?: true
Size: 414 Bytes
Versions: 4
Compression:
Stored size: 414 Bytes
Contents
require_relative "setup.rb" class ErrorTest < MiniTest::Test def test_bad_request object = OpenTox::Feature.new assert_nil OpenTox::Feature.find(object.id) end def test_error_methods assert_raises OpenTox::NotFoundError do not_found_error "This is a test" end end def test_exception assert_raises Exception do raise Exception.new "Basic Exception" end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
lazar-1.1.3 | test/error.rb |
lazar-1.1.0 | test/error.rb |
lazar-1.0.1 | test/error.rb |
lazar-1.0.0 | test/error.rb |