Commit 31b0665f by delba

Model.exists? returns truthy or falsy

parent 1b45bbc8
......@@ -193,7 +193,7 @@ class ParanoiaTest < Test::Unit::TestCase
model.save
model.destroy!
assert_equal false, ParanoidModel.unscoped.exists?(model.id)
refute ParanoidModel.unscoped.exists?(model.id)
end
def test_real_delete
......@@ -201,7 +201,7 @@ class ParanoiaTest < Test::Unit::TestCase
model.save
model.delete!
assert_equal false, ParanoidModel.unscoped.exists?(model.id)
refute ParanoidModel.unscoped.exists?(model.id)
end
private
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment