1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
This commit is contained in:
Jon Leighton 2012-03-30 14:37:37 +01:00
parent bd40e5c9e4
commit 43f9622c67

View file

@ -9,6 +9,7 @@ require 'models/string_key_object'
require 'models/car'
require 'models/engine'
require 'models/wheel'
require 'models/treasure'
class LockWithoutDefault < ActiveRecord::Base; end
@ -241,7 +242,7 @@ class OptimisticLockingTest < ActiveRecord::TestCase
end
def test_removing_has_and_belongs_to_many_associations_upon_destroy
p = RichPerson.create!
p = RichPerson.create! first_name: 'Jon'
p.treasures.create!
assert !p.treasures.empty?
p.destroy