Skip to content

Commit

Permalink
test: perform_enqueued_jobs raises error because of known bug
Browse files Browse the repository at this point in the history
  • Loading branch information
skelz0r committed Jul 7, 2022
1 parent c3291b5 commit 4b70eb9
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions backend/spec/rails_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,18 @@
require "sidekiq/testing"
require "spec_helper"

if Rails::VERSION::MAJOR >= 7
require 'rspec/rails/version'

RSpec::Core::ExampleGroup.module_eval do
include ActiveSupport::Testing::TaggedLogging

def name
'foobar'
end
end
end

Dir[Rails.root.join("spec/support/**/*.rb")].sort.each { |file| require file }

# Add additional requires below this line. Rails is not loaded until this point!
Expand Down

0 comments on commit 4b70eb9

Please sign in to comment.