aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2005-09-28 04:00:59 +0000
committerJeremy Kemper <jeremy@bitsweat.net>2005-09-28 04:00:59 +0000
commitdd21e9ae39a2dc4b7eb607ff2c200c864fa19b28 (patch)
tree11ed44762c2185b831708be4231c9a123c1ba7aa /activerecord/test
parentefaf2af07c4238e911899988871e575d8ef5805b (diff)
downloadrails-dd21e9ae39a2dc4b7eb607ff2c200c864fa19b28.tar.gz
rails-dd21e9ae39a2dc4b7eb607ff2c200c864fa19b28.tar.bz2
rails-dd21e9ae39a2dc4b7eb607ff2c200c864fa19b28.zip
r3657@asus: jeremy | 2005-09-28 00:32:33 -0700
Also test that client.firm_id.nil? after firm.clients.clear when clients is not :dependent git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2385 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord/test')
-rwxr-xr-xactiverecord/test/associations_test.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/activerecord/test/associations_test.rb b/activerecord/test/associations_test.rb
index d0b560d112..2e69ad8ac2 100755
--- a/activerecord/test/associations_test.rb
+++ b/activerecord/test/associations_test.rb
@@ -519,7 +519,9 @@ class HasManyAssociationsTest < Test::Unit::TestCase
assert_equal [], Client.destroyed_client_ids[firm.id]
# Should not be destroyed since the association is not dependent.
- assert_not_nil Client.find_by_id(client_id)
+ assert_nothing_raised do
+ assert Client.find(client_id).firm.nil?
+ end
end
def test_clearing_a_dependent_association_collection