diff options
author | Neeraj Singh <neerajdotname@gmail.com> | 2013-07-03 00:08:48 +0530 |
---|---|---|
committer | Neeraj Singh <neerajdotname@gmail.com> | 2013-07-03 00:10:55 +0530 |
commit | 8ef2463807402f3e81bc5bbfe7206e2314cc79dc (patch) | |
tree | 788f7dc7b285dbddd2621184970a90b2586c32db /activerecord/test/cases | |
parent | f98d47b1abff6263c3bf0514c64742e15f9a02b3 (diff) | |
download | rails-8ef2463807402f3e81bc5bbfe7206e2314cc79dc.tar.gz rails-8ef2463807402f3e81bc5bbfe7206e2314cc79dc.tar.bz2 rails-8ef2463807402f3e81bc5bbfe7206e2314cc79dc.zip |
Removed support for deprecated `delete_sql` in associations.
Diffstat (limited to 'activerecord/test/cases')
-rw-r--r-- | activerecord/test/cases/associations/has_and_belongs_to_many_associations_test.rb | 25 |
1 files changed, 0 insertions, 25 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 3ff1aeb7fe..0f9af8a0c3 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 @@ -351,31 +351,6 @@ class HasAndBelongsToManyAssociationsTest < ActiveRecord::TestCase assert_equal 0, david.projects(true).size end - def test_deleting_with_sql - david = Developer.find(1) - active_record = Project.find(1) - active_record.developers.reload - assert_equal 3, active_record.developers_by_sql.size - - active_record.developers_by_sql.delete(david) - assert_equal 2, active_record.developers_by_sql(true).size - end - - def test_deleting_array_with_sql - active_record = Project.find(1) - active_record.developers.reload - assert_equal 3, active_record.developers_by_sql.size - - active_record.developers_by_sql.delete(Developer.all) - assert_equal 0, active_record.developers_by_sql(true).size - end - - def test_deleting_all_with_sql - project = Project.find(1) - project.developers_by_sql.delete_all - assert_equal 0, project.developers_by_sql.size - end - def test_deleting_all david = Developer.find(1) david.projects.reload |