aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/associations/has_many_associations_test.rb
diff options
context:
space:
mode:
authorYehuda Katz + Carl Lerche <ykatz+clerche@engineyard.com>2009-06-22 12:04:02 -0700
committerYehuda Katz + Carl Lerche <ykatz+clerche@engineyard.com>2009-06-22 12:04:02 -0700
commit80f1f863cd0f9cba89079511282de5710a2e1832 (patch)
tree16a0df573a65d4cfc922a07b54b4a44d902e81dc /activerecord/test/cases/associations/has_many_associations_test.rb
parent4851ca9e13a4317342df02ae25b1929340523f7a (diff)
downloadrails-80f1f863cd0f9cba89079511282de5710a2e1832.tar.gz
rails-80f1f863cd0f9cba89079511282de5710a2e1832.tar.bz2
rails-80f1f863cd0f9cba89079511282de5710a2e1832.zip
Revert "Generate proper :counter_sql from :finder_sql when there is a newline character immediately following 'SELECT' [#2118 state:resolved]"
This reverts commit 4851ca9e13a4317342df02ae25b1929340523f7a. The tests do not pass for postgresql.
Diffstat (limited to 'activerecord/test/cases/associations/has_many_associations_test.rb')
-rw-r--r--activerecord/test/cases/associations/has_many_associations_test.rb5
1 files changed, 0 insertions, 5 deletions
diff --git a/activerecord/test/cases/associations/has_many_associations_test.rb b/activerecord/test/cases/associations/has_many_associations_test.rb
index 15919e2289..d99424f9cd 100644
--- a/activerecord/test/cases/associations/has_many_associations_test.rb
+++ b/activerecord/test/cases/associations/has_many_associations_test.rb
@@ -163,11 +163,6 @@ class HasManyAssociationsTest < ActiveRecord::TestCase
assert_equal 0, Firm.find(:first).no_clients_using_counter_sql.size
end
- def test_counting_using_finder_sql
- assert_equal 2, Firm.find(4).clients_using_sql.count
- assert_equal 2, Firm.find(4).clients_using_multiline_sql.count
- end
-
def test_belongs_to_sanity
c = Client.new
assert_nil c.firm