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