spec/spec_helper.rb in reactor-0.5.0 vs spec/spec_helper.rb in reactor-0.5.1
- old
+ new
@@ -30,18 +30,14 @@
# Runs Sidekiq jobs inline by default unless the RSpec metadata :sidekiq is specified,
# in which case it will use the real Redis-backed Sidekiq queue
config.before(:each, :sidekiq) do
Sidekiq.redis{|r| r.flushall }
- Sidekiq::Client.class_eval do
- singleton_class.class_eval do
- alias_method :raw_push, :raw_push_old
- end
- end
+ Sidekiq::Testing.disable!
end
config.after(:each, :sidekiq) do
- load "sidekiq/testing/inline.rb"
+ Sidekiq::Testing.inline!
end
end
\ No newline at end of file