diff options
author | Pratik Naik <pratiknaik@gmail.com> | 2010-01-20 01:19:53 +0530 |
---|---|---|
committer | Pratik Naik <pratiknaik@gmail.com> | 2010-01-20 01:20:20 +0530 |
commit | 42553a98eaa05c703de52147c870e4dd9a3d50ba (patch) | |
tree | 232f2e5a3e75fac725d92ce9f276f9ea812d6567 /activerecord/test | |
parent | 6e62e89737c991de712a13b67a282ce599710ec9 (diff) | |
download | rails-42553a98eaa05c703de52147c870e4dd9a3d50ba.tar.gz rails-42553a98eaa05c703de52147c870e4dd9a3d50ba.tar.bz2 rails-42553a98eaa05c703de52147c870e4dd9a3d50ba.zip |
Remove find_with_associations and related code from associations now that Relation handles that stuff
Diffstat (limited to 'activerecord/test')
-rw-r--r-- | activerecord/test/cases/associations/has_and_belongs_to_many_associations_test.rb | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/activerecord/test/cases/associations/has_and_belongs_to_many_associations_test.rb b/activerecord/test/cases/associations/has_and_belongs_to_many_associations_test.rb index 1bce45865f..004d0156e1 100644 --- a/activerecord/test/cases/associations/has_and_belongs_to_many_associations_test.rb +++ b/activerecord/test/cases/associations/has_and_belongs_to_many_associations_test.rb @@ -732,21 +732,6 @@ class HasAndBelongsToManyAssociationsTest < ActiveRecord::TestCase assert_equal [projects(:active_record), projects(:action_controller)].map(&:id).sort, developer.project_ids.sort end - def test_select_limited_ids_array - # Set timestamps - Developer.transaction do - Developer.find(:all, :order => 'id').each_with_index do |record, i| - 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_array, {:order => 'developers.created_at'}, join_dep) - assert !projects.include?("'"), projects - assert_equal ["1", "2"], projects.sort - end - def test_scoped_find_on_through_association_doesnt_return_read_only_records tag = Post.find(1).tags.find_by_name("General") |