Skip to content

Commit

Permalink
Fixed gruoped_by_title spelling [#5063 state:committed]
Browse files Browse the repository at this point in the history
Signed-off-by: Xavier Noria <fxn@hashref.com>
  • Loading branch information
Ben Somers authored and fxn committed Jul 7, 2010
1 parent c58e7a7 commit de51cbc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Expand Up @@ -684,8 +684,8 @@ def test_find_grouped
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
Expand Down
2 changes: 1 addition & 1 deletion activerecord/test/models/category.rb
Expand Up @@ -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...'
Expand Down

0 comments on commit de51cbc

Please sign in to comment.