1
0
Fork 0
mirror of https://github.com/kaminari/kaminari.git synced 2022-11-09 13:44:37 -05:00
This commit is contained in:
Akira Matsuda 2015-09-21 09:59:49 +09:00
parent aaaaec33a3
commit 47b9ef394e
2 changed files with 2 additions and 2 deletions

View file

@ -15,7 +15,7 @@ if defined? ActiveRecord
end
context "when the scope is cloned" do
it "should reset total_coount momoization" do
it "should reset total_count memoization" do
User.page.tap(&:total_count).where(:name => 'author').total_count.should == 1
end
end

View file

@ -8,7 +8,7 @@ if defined? Mongoid
end
context "when the scope is cloned" do
it "should reset total_coount momoization" do
it "should reset total_count memoization" do
User.page.tap(&:total_count).where(:salary => 1).total_count.should == 1
end
end