diff --git a/activerecord/test/cases/associations/inverse_associations_test.rb b/activerecord/test/cases/associations/inverse_associations_test.rb index 64866438154db4c89eea07d3290414c40331cc55..9c24e0fe025bc45d7a213fbb04c816b7f06b69eb 100644 --- a/activerecord/test/cases/associations/inverse_associations_test.rb +++ b/activerecord/test/cases/associations/inverse_associations_test.rb @@ -303,11 +303,11 @@ def test_trying_to_use_inverses_that_dont_exist_should_raise_an_error if defined?(DidYouMean) && DidYouMean.respond_to?(:correct_error) def test_trying_to_use_inverses_that_dont_exist_should_have_suggestions_for_fix error = assert_raise(ActiveRecord::InverseOfAssociationNotFoundError) { - Human.first.dirty_face + Human.first.confused_face } assert_match "Did you mean?", error.message - assert_equal "horrible_human", error.corrections.first + assert_equal "super_human", error.corrections.first end end end @@ -665,11 +665,11 @@ def test_trying_to_use_inverses_that_dont_exist_should_raise_an_error if defined?(DidYouMean) && DidYouMean.respond_to?(:correct_error) def test_trying_to_use_inverses_that_dont_exist_should_have_suggestions_for_fix error = assert_raise(ActiveRecord::InverseOfAssociationNotFoundError) { - Face.first.horrible_human + Face.first.puzzled_human } assert_match "Did you mean?", error.message - assert_equal "polymorphic_face", error.corrections.first + assert_equal "confused_face", error.corrections.first end end