diff options
author | Emilio Tagua <miloops@gmail.com> | 2009-06-30 20:32:28 -0300 |
---|---|---|
committer | Emilio Tagua <miloops@gmail.com> | 2009-06-30 20:32:28 -0300 |
commit | cbf8ecc1cba733c92191cacdf9bdfa0f5555b68a (patch) | |
tree | f1a6943b568aa2cf032e6deaa9b3f220a1dc64c0 /activerecord/test/cases/associations/has_and_belongs_to_many_associations_test.rb | |
parent | e5b8c4483c8de805d5847563edcf4e5d7e035a87 (diff) | |
parent | 45e6f19925f23c3db257c15371d8f512cca843cd (diff) | |
download | rails-cbf8ecc1cba733c92191cacdf9bdfa0f5555b68a.tar.gz rails-cbf8ecc1cba733c92191cacdf9bdfa0f5555b68a.tar.bz2 rails-cbf8ecc1cba733c92191cacdf9bdfa0f5555b68a.zip |
Merge commit 'rails/master'
Diffstat (limited to 'activerecord/test/cases/associations/has_and_belongs_to_many_associations_test.rb')
-rw-r--r-- | activerecord/test/cases/associations/has_and_belongs_to_many_associations_test.rb | 7 |
1 files changed, 7 insertions, 0 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 8dc95806b9..14b96caaae 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 @@ -803,6 +803,13 @@ class HasAndBelongsToManyAssociationsTest < ActiveRecord::TestCase assert_equal 1, developer.projects.count end + unless current_adapter?(:PostgreSQLAdapter) + def test_count_with_finder_sql + assert_equal 3, projects(:active_record).developers_with_finder_sql.count + assert_equal 3, projects(:active_record).developers_with_multiline_finder_sql.count + end + end + def test_association_proxy_transaction_method_starts_transaction_in_association_class Post.expects(:transaction) Category.find(:first).posts.transaction do |