mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 02:11:08 -06:00
Clear the cache after each test otherwise we are leaking state.
This commit is contained in:
parent
6593f0355f
commit
381a2a55be
@ -1,11 +1,14 @@
|
||||
require 'rails_helper'
|
||||
|
||||
describe ApplicationRequest do
|
||||
|
||||
before do
|
||||
ApplicationRequest.clear_cache!
|
||||
end
|
||||
|
||||
after do
|
||||
ApplicationRequest.clear_cache!
|
||||
end
|
||||
|
||||
def inc(key,opts=nil)
|
||||
ApplicationRequest.increment!(key,opts)
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user