1
0
Fork 0
mirror of https://github.com/mperham/sidekiq.git synced 2022-11-09 13:52:34 -05:00

Require extensions in lib/testing.rb

This commit is contained in:
fatkodima 2019-10-01 17:12:49 +03:00 committed by Mike Perham
parent 9988afc207
commit ee65b5365e

View file

@ -333,8 +333,8 @@ module Sidekiq
end
end
Sidekiq::Extensions::DelayedMailer.extend(TestingExtensions)
Sidekiq::Extensions::DelayedModel.extend(TestingExtensions)
Sidekiq::Extensions::DelayedMailer.extend(TestingExtensions) if defined?(Sidekiq::Extensions::DelayedMailer)
Sidekiq::Extensions::DelayedModel.extend(TestingExtensions) if defined?(Sidekiq::Extensions::DelayedModel)
end
if defined?(::Rails) && Rails.respond_to?(:env) && !Rails.env.test?