Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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
  • Loading branch information...
commit dd21e9ae39a2dc4b7eb607ff2c200c864fa19b28 1 parent efaf2af
@jeremy jeremy authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 activerecord/test/associations_test.rb
View
4 activerecord/test/associations_test.rb
@@ -519,7 +519,9 @@ def test_clearing_an_association_collection
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
Please sign in to comment.
Something went wrong with that request. Please try again.