spec/spec_helper.rb in stripe_event-1.9.1 vs spec/spec_helper.rb in stripe_event-2.0.0
- old
+ new
@@ -11,15 +11,17 @@
config.expect_with :rspec do |c|
c.syntax = :expect
end
config.before do
- @event_retriever = StripeEvent.event_retriever
+ @signing_secrets = StripeEvent.signing_secrets
+ @event_filter = StripeEvent.event_filter
@notifier = StripeEvent.backend.notifier
StripeEvent.backend.notifier = @notifier.class.new
end
config.after do
- StripeEvent.event_retriever = @event_retriever
+ StripeEvent.signing_secrets = @signing_secrets
+ StripeEvent.event_filter = @event_filter
StripeEvent.backend.notifier = @notifier
end
end