aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2013-07-09 00:57:57 -0700
committerRafael Mendonça França <rafaelmfranca@gmail.com>2013-07-09 00:57:57 -0700
commit6e53bcfe99cde623c91ad99400dc148d08ca0717 (patch)
treebdf33529535057b10b08a328486025e33b3f0491
parent16e4d013d8a264aed99deeba18d96a1ac541a715 (diff)
parentfd2ddb3eb8b7f33ec6319765595e6ede761e9999 (diff)
downloadrails-6e53bcfe99cde623c91ad99400dc148d08ca0717.tar.gz
rails-6e53bcfe99cde623c91ad99400dc148d08ca0717.tar.bz2
rails-6e53bcfe99cde623c91ad99400dc148d08ca0717.zip
Merge pull request #11373 from vipulnsward/remove_deprecated_test
Remove redundant test about `push_with_attributes` removal.
-rw-r--r--activerecord/test/cases/associations/has_and_belongs_to_many_associations_test.rb7
1 files changed, 0 insertions, 7 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 0f9af8a0c3..c63f48e370 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
@@ -437,13 +437,6 @@ class HasAndBelongsToManyAssociationsTest < ActiveRecord::TestCase
assert george.treasures(true).empty?
end
- def test_deprecated_push_with_attributes_was_removed
- jamis = developers(:jamis)
- assert_raise(NoMethodError) do
- jamis.projects.push_with_attributes(projects(:action_controller), :joined_on => Date.today)
- end
- end
-
def test_associations_with_conditions
assert_equal 3, projects(:active_record).developers.size
assert_equal 1, projects(:active_record).developers_named_david.size