Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ci] Reset the cache before each rspec suite
With things like database_cleaner you really want to make sure that tests don't pollute each other with stale cache items (rails defaults to null_store in test environment, but that's a harsher measure)
- Loading branch information
Showing
2 changed files
with
9 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -69,3 +69,6 @@ | |
|
||
# support Delayed Jobs | ||
require 'support/delayed_job' | ||
|
||
# Cache reset | ||
require 'support/cache' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# reset the cache before each test | ||
RSpec.configure do |config| | ||
config.before do | ||
Rails.cache.clear | ||
end | ||
end |