Clear cache at beginning of unit tests.

This commit is contained in:
Martin Edenhofer 2014-08-03 14:57:03 +02:00
parent 2ef21177f6
commit cd10f5b064

View file

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