Skip to content

Commit d67936c

Browse files
committed
Fix test for the new error message format
1 parent 6f7b96b commit d67936c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

activerecord/test/cases/associations/has_many_associations_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2793,7 +2793,7 @@ def test_association_with_rewhere_doesnt_set_inverse_instance_key
27932793
end
27942794

27952795
assert_equal [original_child], car.reload.failed_bulbs
2796-
assert_equal "Failed to destroy the FailedBulb record", error.message
2796+
assert_equal "Failed to destroy FailedBulb with #{FailedBulb.primary_key}=#{original_child.id}", error.message
27972797
end
27982798

27992799
test "updates counter cache when default scope is given" do

0 commit comments

Comments
 (0)