test/error.rb in lazar-0.0.7 vs test/error.rb in lazar-0.0.9
- old
+ new
@@ -2,12 +2,10 @@
class ErrorTest < MiniTest::Test
def test_bad_request
object = OpenTox::Feature.new
- assert_raises Mongoid::Errors::DocumentNotFound do
- response = OpenTox::Feature.find(object.id)
- end
+ assert_nil OpenTox::Feature.find(object.id)
end
def test_error_methods
assert_raises OpenTox::ResourceNotFoundError do
resource_not_found_error "This is a test"