Improve test_destroy_linked_models by adding two assertions

This change makes sure that a test scenario has reasonable assertions.
This commit is contained in:
Ernesto Tagwerker 2022-10-24 20:52:18 -04:00
parent 843bdef668
commit 7f32ef70f5

@ -1660,5 +1660,8 @@ def test_destroy_linked_models
author = Author.create! name: "Author", author_address_id: address.id
author.destroy!
assert_not AuthorAddress.exists?(address.id)
assert_not Author.exists?(author.id)
end
end