diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2005-09-20 18:36:14 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2005-09-20 18:36:14 +0000 |
commit | 66ecf31ffe751d2eeec124b081e80a38d2d47d87 (patch) | |
tree | 9fccd3fc7a9fee4af33d60f630a833fe6d38be0d /activerecord/test | |
parent | 5213a1f73332995ae98d2a163454dff2b288e650 (diff) | |
download | rails-66ecf31ffe751d2eeec124b081e80a38d2d47d87.tar.gz rails-66ecf31ffe751d2eeec124b081e80a38d2d47d87.tar.bz2 rails-66ecf31ffe751d2eeec124b081e80a38d2d47d87.zip |
Fixed that the create_x method from belongs_to wouldn't save the association properly #2042 [Florian Weber]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2279 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord/test')
-rwxr-xr-x | activerecord/test/associations_test.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/activerecord/test/associations_test.rb b/activerecord/test/associations_test.rb index 763b66da9b..2bbccb5c9e 100755 --- a/activerecord/test/associations_test.rb +++ b/activerecord/test/associations_test.rb @@ -664,6 +664,9 @@ class BelongsToAssociationsTest < Test::Unit::TestCase citibank = Account.create("credit_limit" => 10) apple = citibank.create_firm("name" => "Apple") assert_equal apple, citibank.firm + citibank.save + citibank.reload + assert_equal apple, citibank.firm end def test_building_the_belonging_object |