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:
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
|
||||
|
Loading…
Reference in New Issue
Block a user