diff options
Diffstat (limited to 'activerecord/test/associations_test.rb')
-rwxr-xr-x | activerecord/test/associations_test.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/activerecord/test/associations_test.rb b/activerecord/test/associations_test.rb index d033ef087a..0be63fccbf 100755 --- a/activerecord/test/associations_test.rb +++ b/activerecord/test/associations_test.rb @@ -1782,7 +1782,7 @@ class HasAndBelongsToManyAssociationsTest < Test::Unit::TestCase assert_equal projects(:active_record), developer.projects[0] assert_equal projects(:action_controller), developer.projects[1] end - + def test_select_limited_ids_list # Set timestamps Developer.transaction do @@ -1790,10 +1790,10 @@ class HasAndBelongsToManyAssociationsTest < Test::Unit::TestCase record.update_attributes(:created_at => 5.years.ago + (i * 5.minutes)) end end - + 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_equal "'1', '2'", projects + assert_equal %w(1 2), projects.scan(/\d/).sort end end |