Commit cb018cc3 by Ryan Bigg

Add another layer of resiliance to test for #24

parent 3fef29a0
...@@ -105,6 +105,7 @@ class ParanoiaTest < Test::Unit::TestCase ...@@ -105,6 +105,7 @@ class ParanoiaTest < Test::Unit::TestCase
# Regression test for #24 # Regression test for #24
def test_chaining_for_paranoid_models def test_chaining_for_paranoid_models
scope = FeaturefulModel.where(:name => "foo").only_deleted scope = FeaturefulModel.where(:name => "foo").only_deleted
assert_equal "foo", scope.where_values_hash[:name]
assert_equal 2, scope.where_values.count assert_equal 2, scope.where_values.count
end end
......
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