Skip to content

Commit

Permalink
Disable searchkick from running in tests instead
Browse files Browse the repository at this point in the history
I don't know why this is only necessary after upgrading to rails 5
  • Loading branch information
mlandauer committed Jul 28, 2022
1 parent 85e9674 commit 84ebdc5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 84ebdc5

Please sign in to comment.