Commit 131cb29d by Ryan Bigg

add regression test for #24

parent 32d07aea
......@@ -99,6 +99,12 @@ class ParanoiaTest < Test::Unit::TestCase
assert_equal 1, model.class.unscoped.count
end
# Regression test for #24
def test_chaining_for_paranoid_models
scope = FeaturefulModel.where(:name => "foo").only_deleted
scope.where_values.count.should == 2
end
def test_only_destroyed_scope_for_paranoid_models
model = ParanoidModel.new
model.save
......
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