have to clear debounce cache for tests

This commit is contained in:
Sam 2018-01-15 15:29:54 +11:00
parent d9788a5fb3
commit 906f189914
1 changed files with 4 additions and 0 deletions

View File

@ -161,6 +161,10 @@ describe SearchController do
end
context "#click" do
before do
SearchLog.clear_debounce_cache!
end
it "doesn't work wthout the necessary parameters" do
expect do
post :click, format: :json