From cd10f5b064e3b6fcf85519b2f2d750f14f0e17c2 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Sun, 3 Aug 2014 14:57:03 +0200 Subject: [PATCH] Clear cache at beginning of unit tests. --- test/test_helper.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/test/test_helper.rb b/test/test_helper.rb index a2100e697..842ef3fa4 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -1,6 +1,7 @@ ENV["RAILS_ENV"] = "test" require File.expand_path('../../config/environment', __FILE__) require 'rails/test_help' +require 'cache' require 'simplecov' require 'simplecov-rcov' @@ -16,8 +17,11 @@ class ActiveSupport::TestCase # disable transactions self.use_transactional_fixtures = false + # clear cache + Cache.clear + # load seeds - load "#{Rails.root}/db/seeds.rb" + load "#{Rails.root}/db/seeds.rb" setup do