You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The readme explains how to disable callbacks in the test environment with Searchkick.disable_callbacks. As described in #1031, this does not disable callbacks when running Rails system tests as the server starts in a separate thread.
I suggest adding info on how to disable callbacks to that section of the readme. In particular, the code suggested in that issue, or something like this:
System tests
As the callbacks setting is a thread variable, you will need to add additional code to disable it in system tests.
require'searchkick_disable_middleware'Rails.application.configuredo# (Your other configuration...)config.middleware.insert_before(0,SearchkickDisableMiddleware)end
The text was updated successfully, but these errors were encountered:
The readme explains how to disable callbacks in the test environment with
Searchkick.disable_callbacks
. As described in #1031, this does not disable callbacks when running Rails system tests as the server starts in a separate thread.I suggest adding info on how to disable callbacks to that section of the readme. In particular, the code suggested in that issue, or something like this:
System tests
As the callbacks setting is a thread variable, you will need to add additional code to disable it in system tests.
lib/searchkick_disable_middleware.rb
:In
config/environments/test.rb
:The text was updated successfully, but these errors were encountered: