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'
|
require 'rails_helper'
|
||||||
|
|
||||||
describe ApplicationRequest do
|
describe ApplicationRequest do
|
||||||
|
|
||||||
before do
|
before do
|
||||||
ApplicationRequest.clear_cache!
|
ApplicationRequest.clear_cache!
|
||||||
end
|
end
|
||||||
|
|
||||||
|
after do
|
||||||
|
ApplicationRequest.clear_cache!
|
||||||
|
end
|
||||||
|
|
||||||
def inc(key,opts=nil)
|
def inc(key,opts=nil)
|
||||||
ApplicationRequest.increment!(key,opts)
|
ApplicationRequest.increment!(key,opts)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue