Sha256: d8848408caf4c7ffc3e53f1e98bb388b2013e5472e8353cde31c13ddebce022e

Contents?: true

Size: 713 Bytes

Versions: 3

Compression:

Stored size: 713 Bytes

Contents

require 'coveralls'
Coveralls.wear!

require 'webmock/rspec'
require File.expand_path('../../lib/square_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 = SquareEvent.signing_secret
    @event_filter = SquareEvent.event_filter
    @notifier = SquareEvent.backend.notifier
    SquareEvent.backend.notifier = @notifier.class.new
  end

  config.after do
    SquareEvent.signing_secret = @signing_secret
    SquareEvent.event_filter = @event_filter
    SquareEvent.backend.notifier = @notifier
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
square_event-1.0.2 spec/spec_helper.rb
square_event-1.0.1 spec/spec_helper.rb
square_event-1.0.0 spec/spec_helper.rb