diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2006-07-05 01:43:47 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2006-07-05 01:43:47 +0000 |
commit | b272100f05aa3669efe1ad4d0d7b4299a568f1c0 (patch) | |
tree | 20c50f0f5c4e2c1259d98329cb1564d1513aaf15 /activerecord/test | |
parent | f780bb8f58f15f6d60c8d6a4ad4adf19f3681bfe (diff) | |
download | rails-b272100f05aa3669efe1ad4d0d7b4299a568f1c0.tar.gz rails-b272100f05aa3669efe1ad4d0d7b4299a568f1c0.tar.bz2 rails-b272100f05aa3669efe1ad4d0d7b4299a568f1c0.zip |
Doc fix (closes #5504) [lee@omara.ca]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4543 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord/test')
-rwxr-xr-x | activerecord/test/associations_test.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/activerecord/test/associations_test.rb b/activerecord/test/associations_test.rb index 4d8817568f..86600c25d2 100755 --- a/activerecord/test/associations_test.rb +++ b/activerecord/test/associations_test.rb @@ -1619,4 +1619,8 @@ class HasAndBelongsToManyAssociationsTest < Test::Unit::TestCase def test_join_table_alias assert_equal 3, Developer.find(:all, :include => {:projects => :developers}, :conditions => 'developers_projects_join.joined_on IS NOT NULL').size end + + def test_join_with_group + assert_equal 2, Developer.find(:all, :include => {:projects => :developers}, :conditions => 'developers_projects_join.joined_on IS NOT NULL', :group => "developers.name").size + end end |