aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/associations_join_model_test.rb
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2006-06-03 21:47:29 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2006-06-03 21:47:29 +0000
commit6a9f47f33f853c6899bb50bf21e49da798bdd12e (patch)
treebec4db9303260814873bb369fce8b585199a9951 /activerecord/test/associations_join_model_test.rb
parent7f00f51239f112ef6c70293665bcf0a5e2c313db (diff)
downloadrails-6a9f47f33f853c6899bb50bf21e49da798bdd12e.tar.gz
rails-6a9f47f33f853c6899bb50bf21e49da798bdd12e.tar.bz2
rails-6a9f47f33f853c6899bb50bf21e49da798bdd12e.zip
Make more Firebird tests pass (closes #5188) [kennethkunz@gmail.com]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4420 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord/test/associations_join_model_test.rb')
-rw-r--r--activerecord/test/associations_join_model_test.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/activerecord/test/associations_join_model_test.rb b/activerecord/test/associations_join_model_test.rb
index be04df9c00..ede21785e7 100644
--- a/activerecord/test/associations_join_model_test.rb
+++ b/activerecord/test/associations_join_model_test.rb
@@ -301,7 +301,8 @@ class AssociationsJoinModelTest < Test::Unit::TestCase
end
def test_has_many_through_has_many_find_conditions
- assert_equal comments(:does_it_hurt), authors(:david).comments.find(:first, :conditions => "comments.type='SpecialComment'", :order => 'comments.id')
+ options = { :conditions => "comments.#{QUOTED_TYPE}='SpecialComment'", :order => 'comments.id' }
+ assert_equal comments(:does_it_hurt), authors(:david).comments.find(:first, options)
end
def test_has_many_through_has_many_find_by_id