tests: fix saved search index action test.

This passed in development but failed in CI because SavedSearch.redis
used the live Redis server, which worked by accident as long as you had
a Redis server running.
This commit is contained in:
evazion
2020-06-15 16:29:48 -05:00
parent 3cdf679202
commit ec5aa6c662

View File

@@ -5,6 +5,7 @@ class SavedSearchesControllerTest < ActionDispatch::IntegrationTest
setup do
@user = create(:user)
@saved_search = create(:saved_search, user: @user)
SavedSearch.stubs(:redis).returns(MockRedis.new)
end
context "index action" do