From 96a476a2331daa4d1d6b5ac444bbdbd2ac221a5f Mon Sep 17 00:00:00 2001 From: Christoph Helma Date: Thu, 10 Sep 2015 12:54:18 +0200 Subject: tests fixed (crossvalidations may fail due to memory constraints) --- test/error.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'test/error.rb') diff --git a/test/error.rb b/test/error.rb index 7b71b22..16a7077 100644 --- a/test/error.rb +++ b/test/error.rb @@ -4,9 +4,7 @@ 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 -- cgit v1.2.3