summaryrefslogtreecommitdiff
path: root/test/error.rb
diff options
context:
space:
mode:
authorChristoph Helma <helma@in-silico.ch>2015-09-10 12:54:18 +0200
committerChristoph Helma <helma@in-silico.ch>2015-09-10 12:54:18 +0200
commit96a476a2331daa4d1d6b5ac444bbdbd2ac221a5f (patch)
tree70d09c28efc104dee82058058b321e235421fe00 /test/error.rb
parent5b844250a7d3be05e3139e0ca3c819c3da8ee4f6 (diff)
tests fixed (crossvalidations may fail due to memory constraints)
Diffstat (limited to 'test/error.rb')
-rw-r--r--test/error.rb4
1 files changed, 1 insertions, 3 deletions
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