Skip to content

Commit

Permalink
More workarounds for perform_enqueued_jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
cjcolvar authored and randalldfloyd committed Dec 3, 2024
1 parent 89c9a6c commit 2c39fce
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -169,14 +169,17 @@ def clean_active_fedora_repository
config.before :suite do
FactoryBot::SyntaxRunner.include ActiveJob::TestHelper
FactoryBot::SyntaxRunner.include RSpec::Mocks::ExampleMethods
# Workarounds for perform_enqueued_jobs
FactoryBot::SyntaxRunner.include ActiveSupport::Testing::TaggedLogging
# HACK: Workaround for issue with TaggedLogging
# See https://github.com/rspec/rspec-rails/issues/2545
FactoryBot::SyntaxRunner.class_eval do
def name
'FactoryBot::SyntaxRunner'
end
end
require 'rspec/core/minitest_assertions_adapter'
FactoryBot::SyntaxRunner.include RSpec::Core::MinitestAssertionsAdapter
# End of workarounds
Hyrax::RedisEventStore.instance.then(&:flushdb)
DatabaseCleaner.clean_with(:truncation)
# Noid minting causes extra LDP requests which slow the test suite.
Expand Down

0 comments on commit 2c39fce

Please sign in to comment.