From 43f9622c6749d04867534e1a8838df619c2a79f0 Mon Sep 17 00:00:00 2001 From: Jon Leighton Date: Fri, 30 Mar 2012 14:37:37 +0100 Subject: [PATCH] fix test --- activerecord/test/cases/locking_test.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/activerecord/test/cases/locking_test.rb b/activerecord/test/cases/locking_test.rb index 5c59ab3187..cc6baa6153 100644 --- a/activerecord/test/cases/locking_test.rb +++ b/activerecord/test/cases/locking_test.rb @@ -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