Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
jonleighton committed Mar 30, 2012
1 parent bd40e5c commit 43f9622
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion activerecord/test/cases/locking_test.rb
Expand Up @@ -9,6 +9,7 @@
require 'models/car'
require 'models/engine'
require 'models/wheel'
require 'models/treasure'

class LockWithoutDefault < ActiveRecord::Base; end

Expand Down Expand Up @@ -241,7 +242,7 @@ def test_polymorphic_destroy_with_dependencies_and_lock_version
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
Expand Down

0 comments on commit 43f9622

Please sign in to comment.