DEV: Clear hex_cache after each test.

This commit is contained in:
Guo Xiang Tan 2018-10-15 10:24:05 +08:00
parent 84d4c81a26
commit 2ce684b134

View File

@ -134,6 +134,7 @@ RSpec.configure do |config|
unfreeze_time unfreeze_time
ActionMailer::Base.deliveries.clear ActionMailer::Base.deliveries.clear
ColorScheme.hex_cache.clear
raise if ActiveRecord::Base.connection_pool.stat[:busy] > 1 raise if ActiveRecord::Base.connection_pool.stat[:busy] > 1
end end