1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Add missing fixture to allow reload models test to run isolated [#1609 state:resolved]

Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
This commit is contained in:
Emilio Tagua 2008-12-20 17:05:53 -03:00 committed by Pratik Naik
parent 7b249b67e9
commit c092dbef50

View file

@ -3,6 +3,8 @@ require 'models/owner'
require 'models/pet' require 'models/pet'
class ReloadModelsTest < ActiveRecord::TestCase class ReloadModelsTest < ActiveRecord::TestCase
fixtures :pets
def test_has_one_with_reload def test_has_one_with_reload
pet = Pet.find_by_name('parrot') pet = Pet.find_by_name('parrot')
pet.owner = Owner.find_by_name('ashley') pet.owner = Owner.find_by_name('ashley')
@ -17,4 +19,4 @@ class ReloadModelsTest < ActiveRecord::TestCase
pet.owner = Owner.find_by_name('ashley') pet.owner = Owner.find_by_name('ashley')
assert_equal pet.owner, Owner.find_by_name('ashley') assert_equal pet.owner, Owner.find_by_name('ashley')
end end
end end