diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2017-04-27 01:10:04 -0700 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2017-04-27 01:23:50 -0700 |
commit | ee9e08679ab1dc60852236741f73ff82b6d96302 (patch) | |
tree | d7936df5ffebfbbb82fec7498b7ea2f7bb81a1c2 /activerecord | |
parent | b4b3b14bd086051fc036af2e9aa4755e4c2931c7 (diff) | |
download | rails-ee9e08679ab1dc60852236741f73ff82b6d96302.tar.gz rails-ee9e08679ab1dc60852236741f73ff82b6d96302.tar.bz2 rails-ee9e08679ab1dc60852236741f73ff82b6d96302.zip |
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.
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/test/cases/reload_models_test.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/activerecord/test/cases/reload_models_test.rb b/activerecord/test/cases/reload_models_test.rb index 5dc9d6d8b7..dffb55ba81 100644 --- a/activerecord/test/cases/reload_models_test.rb +++ b/activerecord/test/cases/reload_models_test.rb @@ -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? |