Fixed bug: Setting changes in RSpec test are leaking.
This commit is contained in:
parent
132a88005f
commit
b96de74964
1 changed files with 4 additions and 0 deletions
|
@ -4,5 +4,9 @@ RSpec.configure do |config|
|
||||||
# be able to recognize the rollbacks
|
# be able to recognize the rollbacks
|
||||||
# done by RSpec
|
# done by RSpec
|
||||||
Cache.clear
|
Cache.clear
|
||||||
|
|
||||||
|
# clear Setting cache to prevent leaking
|
||||||
|
# of Setting changes from previous test examples
|
||||||
|
Setting.reload
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue