Clear cache at beginning of unit tests.
This commit is contained in:
parent
2ef21177f6
commit
cd10f5b064
1 changed files with 5 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue