Skip to content

Commit

Permalink
Include fixtures to prevent foreign key violation.
Browse files Browse the repository at this point in the history
  • Loading branch information
zuhao committed Jul 8, 2014
1 parent 84b9cc0 commit a843d54
Showing 1 changed file with 2 additions and 0 deletions.
Expand Up @@ -937,6 +937,8 @@ def test_reflect_the_most_recent_change
end

class BelongsToWithForeignKeyTest < ActiveRecord::TestCase
fixtures :authors, :author_addresses

def test_destroy_linked_models
address = AuthorAddress.create!
author = Author.create! name: "Author", author_address_id: address.id
Expand Down

0 comments on commit a843d54

Please sign in to comment.