aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases
diff options
context:
space:
mode:
authorMatthew Draper <matthew@trebex.net>2017-05-24 13:35:49 +0930
committerGitHub <noreply@github.com>2017-05-24 13:35:49 +0930
commitdee94f84d07decc272df12726d0fff3e0c4f4453 (patch)
treef541aeeac8e27f4e09404a9e24e63f0a6a737c81 /activerecord/test/cases
parentf19f4270d014156e9ac6276789ed08b2936b8cd7 (diff)
parentbf14291a00478bbb9c65c3abe41f0b336236b6e5 (diff)
downloadrails-dee94f84d07decc272df12726d0fff3e0c4f4453.tar.gz
rails-dee94f84d07decc272df12726d0fff3e0c4f4453.tar.bz2
rails-dee94f84d07decc272df12726d0fff3e0c4f4453.zip
Merge pull request #29167 from koic/remove_duplicate_inverse_associations_test
Remove a duplicate test of inverse_associations_test in AR
Diffstat (limited to 'activerecord/test/cases')
-rw-r--r--activerecord/test/cases/associations/inverse_associations_test.rb14
1 files changed, 0 insertions, 14 deletions
diff --git a/activerecord/test/cases/associations/inverse_associations_test.rb b/activerecord/test/cases/associations/inverse_associations_test.rb
index 287b3e9ebc..467cc73ecd 100644
--- a/activerecord/test/cases/associations/inverse_associations_test.rb
+++ b/activerecord/test/cases/associations/inverse_associations_test.rb
@@ -651,20 +651,6 @@ class InversePolymorphicBelongsToTests < ActiveRecord::TestCase
assert_equal face.description, new_man.polymorphic_face.description, "Description of face should be the same after changes to replaced-parent-owned instance"
end
- def test_child_instance_should_be_shared_with_replaced_via_method_parent
- face = faces(:confused)
- new_man = Man.new
-
- assert_not_nil face.polymorphic_man
- face.polymorphic_man = new_man
-
- assert_equal face.description, new_man.polymorphic_face.description, "Description of face should be the same before changes to parent instance"
- face.description = "Bongo"
- assert_equal face.description, new_man.polymorphic_face.description, "Description of face should be the same after changes to parent instance"
- new_man.polymorphic_face.description = "Mungo"
- assert_equal face.description, new_man.polymorphic_face.description, "Description of face should be the same after changes to replaced-parent-owned instance"
- end
-
def test_inversed_instance_should_not_be_reloaded_after_stale_state_changed
new_man = Man.new
face = Face.new