spec/spec_helper.rb in reactor-0.19.0 vs spec/spec_helper.rb in reactor-1.0.0
- old
+ new
@@ -13,10 +13,11 @@
add_filter "/testing/"
end
require 'reactor'
require 'reactor/testing/matchers'
+require 'reactor/testing/stubs'
require 'rspec/its'
class ApplicationRecord < ActiveRecord::Base
self.abstract_class = true
@@ -51,11 +52,9 @@
RSpec.configure do |config|
# some (optional) config here
config.before(:each) do
- Reactor.test_mode!
- Reactor.clear_test_subscribers!
ActionMailer::Base.deliveries.clear
end
# 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