aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases
diff options
context:
space:
mode:
authorJon Leighton <j@jonathanleighton.com>2011-03-12 09:32:20 +0000
committerJon Leighton <j@jonathanleighton.com>2011-03-12 09:32:20 +0000
commit37d93ea16046add35fecd8c279e868869ee744a5 (patch)
tree63b8ed837d69d2715dd0e46c9314967e1b2e73d0 /activerecord/test/cases
parent17ea20426057aac43abcc0735534df31c577b918 (diff)
downloadrails-37d93ea16046add35fecd8c279e868869ee744a5.tar.gz
rails-37d93ea16046add35fecd8c279e868869ee744a5.tar.bz2
rails-37d93ea16046add35fecd8c279e868869ee744a5.zip
Fix tests under postgres - we should always put conditions in the WHERE part not in ON constraints because postgres requires that the table has been joined before the condition references it.
Diffstat (limited to 'activerecord/test/cases')
-rw-r--r--activerecord/test/cases/associations/nested_through_associations_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/associations/nested_through_associations_test.rb b/activerecord/test/cases/associations/nested_through_associations_test.rb
index 0dd407f342..dd450a2a8e 100644
--- a/activerecord/test/cases/associations/nested_through_associations_test.rb
+++ b/activerecord/test/cases/associations/nested_through_associations_test.rb
@@ -272,7 +272,7 @@ class NestedThroughAssociationsTest < ActiveRecord::TestCase
def test_has_many_through_has_many_with_has_many_through_habtm_source_reflection_preload_via_joins
assert_includes_and_joins_equal(
- Author.where('comments.id' => comments(:does_it_hurt).id).order('comments.id'),
+ Author.where('comments.id' => comments(:does_it_hurt).id).order('authors.id'),
[authors(:david), authors(:mary)], :category_post_comments
)
end