Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Include fixtures to prevent foreign key violation.

  • Loading branch information...
commit a843d54dd22e789642ac666452b92428c217bc07 1 parent 84b9cc0
@zuhao zuhao authored
View
2  activerecord/test/cases/associations/belongs_to_associations_test.rb
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.