Sha256: 27fda7b479f610206d3aefeb4ecc3a03eb9f15ca1f128c41d63a5959e3248888

Contents?: true

Size: 716 Bytes

Versions: 10

Compression:

Stored size: 716 Bytes

Contents

require 'coveralls'
Coveralls.wear!

require 'webmock/rspec'
require File.expand_path('../../lib/stripe_event', __FILE__)
Dir[File.expand_path('../spec/support/**/*.rb', __FILE__)].each { |f| require f }

RSpec.configure do |config|
  config.order = 'random'

  config.expect_with :rspec do |c|
    c.syntax = :expect
  end

  config.before do
    @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.signing_secrets = @signing_secrets
    StripeEvent.event_filter = @event_filter
    StripeEvent.backend.notifier = @notifier
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
stripe_event-2.7.0 spec/spec_helper.rb
stripe_event-2.6.0 spec/spec_helper.rb
stripe_event-2.5.0 spec/spec_helper.rb
stripe_event-2.4.0 spec/spec_helper.rb
stripe_event-2.3.2 spec/spec_helper.rb
stripe_event-2.3.1 spec/spec_helper.rb
stripe_event-2.3.0 spec/spec_helper.rb
stripe_event-2.2.0 spec/spec_helper.rb
stripe_event-2.1.1 spec/spec_helper.rb
stripe_event-2.0.0 spec/spec_helper.rb