diff --git a/sentry-sidekiq/spec/sentry/sidekiq/cron/job_spec.rb b/sentry-sidekiq/spec/sentry/sidekiq/cron/job_spec.rb index 85fcaeb99..d5d637a7c 100644 --- a/sentry-sidekiq/spec/sentry/sidekiq/cron/job_spec.rb +++ b/sentry-sidekiq/spec/sentry/sidekiq/cron/job_spec.rb @@ -33,7 +33,7 @@ end before do - stub_const('Job', Class.new { def perform; end }) + stub_const('Job', Class.new { include Sidekiq::Worker; def perform; end }) end it 'patches class' do