diff options
Diffstat (limited to 'activerecord/test/associations_test.rb')
-rwxr-xr-x | activerecord/test/associations_test.rb | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/activerecord/test/associations_test.rb b/activerecord/test/associations_test.rb index bfe797b167..ff687fcd77 100755 --- a/activerecord/test/associations_test.rb +++ b/activerecord/test/associations_test.rb @@ -710,7 +710,7 @@ end class BelongsToAssociationsTest < Test::Unit::TestCase fixtures :accounts, :companies, :developers, :projects, :topics, - :developers_projects + :developers_projects, :computers, :authors, :posts def test_belongs_to Client.find(3).firm.name @@ -832,7 +832,7 @@ class BelongsToAssociationsTest < Test::Unit::TestCase end def test_field_name_same_as_foreign_key - computer = Computer.find 1 + computer = Computer.find(1) assert_not_nil computer.developer, ":foreign key == attribute didn't lock up" # ' end @@ -939,7 +939,10 @@ class BelongsToAssociationsTest < Test::Unit::TestCase def test_association_assignment_sticks post = Post.find(:first) + author1, author2 = Author.find(:all, :limit => 2) + assert_not_nil author1 + assert_not_nil author2 # make sure the association is loaded post.author |