diff options
author | Ben Somers <ben.somers@bookrenter.com> | 2010-07-07 10:05:58 -0700 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2010-07-08 00:26:25 +0200 |
commit | de51cbccf8c9d4e59a128ca8dca8c42d8d7c4dc9 (patch) | |
tree | 191c62ff10672d505e4ef0e20694a0488e44020c /activerecord | |
parent | c58e7a71b52a38885352768c74b7563395566bb6 (diff) | |
download | rails-de51cbccf8c9d4e59a128ca8dca8c42d8d7c4dc9.tar.gz rails-de51cbccf8c9d4e59a128ca8dca8c42d8d7c4dc9.tar.bz2 rails-de51cbccf8c9d4e59a128ca8dca8c42d8d7c4dc9.zip |
Fixed gruoped_by_title spelling [#5063 state:committed]
Signed-off-by: Xavier Noria <fxn@hashref.com>
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/test/cases/associations/has_and_belongs_to_many_associations_test.rb | 4 | ||||
-rw-r--r-- | activerecord/test/models/category.rb | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/activerecord/test/cases/associations/has_and_belongs_to_many_associations_test.rb b/activerecord/test/cases/associations/has_and_belongs_to_many_associations_test.rb index 004d0156e1..b11969a841 100644 --- a/activerecord/test/cases/associations/has_and_belongs_to_many_associations_test.rb +++ b/activerecord/test/cases/associations/has_and_belongs_to_many_associations_test.rb @@ -684,8 +684,8 @@ class HasAndBelongsToManyAssociationsTest < ActiveRecord::TestCase end def test_find_scoped_grouped - assert_equal 4, categories(:general).posts_gruoped_by_title.size - assert_equal 1, categories(:technology).posts_gruoped_by_title.size + assert_equal 4, categories(:general).posts_grouped_by_title.size + assert_equal 1, categories(:technology).posts_grouped_by_title.size end def test_find_scoped_grouped_having diff --git a/activerecord/test/models/category.rb b/activerecord/test/models/category.rb index 5efce6aaa6..48415846dd 100644 --- a/activerecord/test/models/category.rb +++ b/activerecord/test/models/category.rb @@ -15,7 +15,7 @@ class Category < ActiveRecord::Base :conditions => { :title => 'Yet Another Testing Title' } has_and_belongs_to_many :popular_grouped_posts, :class_name => "Post", :group => "posts.type", :having => "sum(comments.post_id) > 2", :include => :comments - has_and_belongs_to_many :posts_gruoped_by_title, :class_name => "Post", :group => "title", :select => "title" + has_and_belongs_to_many :posts_grouped_by_title, :class_name => "Post", :group => "title", :select => "title" def self.what_are_you 'a category...' |