mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06: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