aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases
diff options
context:
space:
mode:
authorNeeraj Singh <neerajdotname@gmail.com>2013-07-03 00:08:48 +0530
committerNeeraj Singh <neerajdotname@gmail.com>2013-07-03 00:10:55 +0530
commit8ef2463807402f3e81bc5bbfe7206e2314cc79dc (patch)
tree788f7dc7b285dbddd2621184970a90b2586c32db /activerecord/test/cases
parentf98d47b1abff6263c3bf0514c64742e15f9a02b3 (diff)
downloadrails-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.rb25
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