aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/associations_test.rb
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2007-09-22 23:51:03 +0000
committerJeremy Kemper <jeremy@bitsweat.net>2007-09-22 23:51:03 +0000
commit4965b1b96163aa7bbc5f14d237683a12300e0798 (patch)
treef668f35153691c50ad8b688cfa6f35aad49e7a51 /activerecord/test/associations_test.rb
parentf3bf372630bfc097887be156effd225a53e790a8 (diff)
downloadrails-4965b1b96163aa7bbc5f14d237683a12300e0798.tar.gz
rails-4965b1b96163aa7bbc5f14d237683a12300e0798.tar.bz2
rails-4965b1b96163aa7bbc5f14d237683a12300e0798.zip
Correctly quote id list for limited eager loading. Closes #7482.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7588 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord/test/associations_test.rb')
-rwxr-xr-xactiverecord/test/associations_test.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/activerecord/test/associations_test.rb b/activerecord/test/associations_test.rb
index 222cb5dbca..8cb3c16a66 100755
--- a/activerecord/test/associations_test.rb
+++ b/activerecord/test/associations_test.rb
@@ -1846,6 +1846,7 @@ class HasAndBelongsToManyAssociationsTest < Test::Unit::TestCase
join_base = ActiveRecord::Associations::ClassMethods::JoinDependency::JoinBase.new(Project)
join_dep = ActiveRecord::Associations::ClassMethods::JoinDependency.new(join_base, :developers, nil)
projects = Project.send(:select_limited_ids_list, {:order => 'developers.created_at'}, join_dep)
+ assert !projects.include?("'"), projects
assert_equal %w(1 2), projects.scan(/\d/).sort
end