Skip to content

Commit

Permalink
Workaround for missing method in FactoryBot::SyntaxRunner
Browse files Browse the repository at this point in the history
  • Loading branch information
cjcolvar authored and randalldfloyd committed Dec 3, 2024
1 parent 5f814d8 commit a1bf3a1
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,13 @@ def clean_active_fedora_repository
FactoryBot::SyntaxRunner.include ActiveJob::TestHelper
FactoryBot::SyntaxRunner.include RSpec::Mocks::ExampleMethods
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
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 a1bf3a1

Please sign in to comment.