Skip to content
This repository
Browse code

Fixed gruoped_by_title spelling [#5063 state:committed]

Signed-off-by: Xavier Noria <fxn@hashref.com>
  • Loading branch information...
commit de51cbccf8c9d4e59a128ca8dca8c42d8d7c4dc9 1 parent c58e7a7
Ben Somers authored July 07, 2010 fxn committed July 08, 2010
4  activerecord/test/cases/associations/has_and_belongs_to_many_associations_test.rb
@@ -684,8 +684,8 @@ def test_find_grouped
684 684
   end
685 685
 
686 686
   def test_find_scoped_grouped
687  
-    assert_equal 4, categories(:general).posts_gruoped_by_title.size
688  
-    assert_equal 1, categories(:technology).posts_gruoped_by_title.size
  687
+    assert_equal 4, categories(:general).posts_grouped_by_title.size
  688
+    assert_equal 1, categories(:technology).posts_grouped_by_title.size
689 689
   end
690 690
 
691 691
   def test_find_scoped_grouped_having
2  activerecord/test/models/category.rb
@@ -15,7 +15,7 @@ class Category < ActiveRecord::Base
15 15
                           :conditions => { :title => 'Yet Another Testing Title' }
16 16
 
17 17
   has_and_belongs_to_many :popular_grouped_posts, :class_name => "Post", :group => "posts.type", :having => "sum(comments.post_id) > 2", :include => :comments
18  
-  has_and_belongs_to_many :posts_gruoped_by_title, :class_name => "Post", :group => "title", :select => "title"
  18
+  has_and_belongs_to_many :posts_grouped_by_title, :class_name => "Post", :group => "title", :select => "title"
19 19
 
20 20
   def self.what_are_you
21 21
     'a category...'

0 notes on commit de51cbc

Please sign in to comment.
Something went wrong with that request. Please try again.