From 47b9ef394e6a943f5cfe8529c6baab9552c98f93 Mon Sep 17 00:00:00 2001 From: Akira Matsuda Date: Mon, 21 Sep 2015 09:59:49 +0900 Subject: [PATCH] typos --- .../models/active_record/active_record_relation_methods_spec.rb | 2 +- spec/models/mongoid/mongoid_spec.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/models/active_record/active_record_relation_methods_spec.rb b/spec/models/active_record/active_record_relation_methods_spec.rb index 7b7a0b3..c00f821 100644 --- a/spec/models/active_record/active_record_relation_methods_spec.rb +++ b/spec/models/active_record/active_record_relation_methods_spec.rb @@ -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 diff --git a/spec/models/mongoid/mongoid_spec.rb b/spec/models/mongoid/mongoid_spec.rb index 737f69a..428ffb9 100644 --- a/spec/models/mongoid/mongoid_spec.rb +++ b/spec/models/mongoid/mongoid_spec.rb @@ -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