mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Run ReloadModelTest in a different proccess
This will make sure it doesn't change the state of the current proccess when removing the owners constant.
This commit is contained in:
parent
b4b3b14bd0
commit
ee9e08679a
1 changed files with 3 additions and 1 deletions
|
@ -3,6 +3,8 @@ require "models/owner"
|
|||
require "models/pet"
|
||||
|
||||
class ReloadModelsTest < ActiveRecord::TestCase
|
||||
include ActiveSupport::Testing::Isolation
|
||||
|
||||
fixtures :pets, :owners
|
||||
|
||||
def test_has_one_with_reload
|
||||
|
@ -19,4 +21,4 @@ class ReloadModelsTest < ActiveRecord::TestCase
|
|||
pet.owner = Owner.find_by_name("ashley")
|
||||
assert_equal pet.owner, Owner.find_by_name("ashley")
|
||||
end
|
||||
end
|
||||
end unless in_memory_db?
|
||||
|
|
Loading…
Reference in a new issue