mirror of
https://github.com/discourse/discourse.git
synced 2025-05-21 18:12:32 +08:00
Clear the cache after each test otherwise we are leaking state.
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user