From 84ebdc5be5349551a9b18f2c61616fd1570961ef Mon Sep 17 00:00:00 2001 From: Matthew Landauer Date: Thu, 28 Jul 2022 17:06:37 +1000 Subject: [PATCH] Disable searchkick from running in tests instead I don't know why this is only necessary after upgrading to rails 5 --- spec/spec_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 741794853..759ce4662 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -24,7 +24,6 @@ c.cassette_library_dir = "spec/fixtures/vcr_cassettes" c.hook_into :webmock c.ignore_hosts "codeclimate.com" - c.ignore_localhost = true end # We don't want webmock to get involved with the excon library at all @@ -69,6 +68,7 @@ config.include FactoryBot::Syntax::Methods config.before(:suite) do + Searchkick.disable_callbacks DatabaseCleaner.start VCR.use_cassette("scraper_validations") { FactoryBot.lint } ensure