mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
fix test
This commit is contained in:
parent
bd40e5c9e4
commit
43f9622c67
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue