diff options
author | Emilio Tagua <miloops@gmail.com> | 2010-10-14 16:21:28 -0300 |
---|---|---|
committer | Emilio Tagua <miloops@gmail.com> | 2010-11-19 19:08:55 -0300 |
commit | 87aa9133c43668ab79e6fb31a872ea309e3811e2 (patch) | |
tree | ed7c87642c7a070cb0004233e919aaeac8fec151 /railties/lib | |
parent | c036caf501c8efc378d72377f3876ad23742f84d (diff) | |
download | rails-87aa9133c43668ab79e6fb31a872ea309e3811e2.tar.gz rails-87aa9133c43668ab79e6fb31a872ea309e3811e2.tar.bz2 rails-87aa9133c43668ab79e6fb31a872ea309e3811e2.zip |
Flush IdentityMap when running tests.
Diffstat (limited to 'railties/lib')
-rw-r--r-- | railties/lib/rails/test_help.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/railties/lib/rails/test_help.rb b/railties/lib/rails/test_help.rb index 38f2f651f4..1057d87ff4 100644 --- a/railties/lib/rails/test_help.rb +++ b/railties/lib/rails/test_help.rb @@ -19,6 +19,10 @@ if defined?(ActiveRecord) class ActiveSupport::TestCase include ActiveRecord::TestFixtures self.fixture_path = "#{Rails.root}/test/fixtures/" + + setup do + ActiveRecord::IdentityMap.clear + end end ActionDispatch::IntegrationTest.fixture_path = ActiveSupport::TestCase.fixture_path |