1
0
Fork 0
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:
Rafael Mendonça França 2017-04-27 01:10:04 -07:00
parent b4b3b14bd0
commit ee9e08679a
No known key found for this signature in database
GPG key ID: FC23B6D0F1EEE948

View file

@ -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?