idempotent-request/spec/spec_helper.rb
Dmytro Zakharov 4488a19f28 - use ActiveSupport::Notifications to instrument events
- fix an issue when getting an exception inside application would not delete lock, so client could receive 429 after 500
2018-12-13 15:29:10 +01:00

21 lines
560 B
Ruby

require "bundler/setup"
require 'fakeredis'
require 'byebug'
require "idempotent-request"
spec = File.expand_path('../', __FILE__)
Dir[File.join(spec, 'support/**/*.rb')].each { |f| require f }
RSpec.configure do |config|
config.include IdempotentRequest::Helpers
# Enable flags like --only-failures and --next-failure
config.example_status_persistence_file_path = ".rspec_status"
# Disable RSpec exposing methods globally on `Module` and `main`
config.disable_monkey_patching!
config.expect_with :rspec do |c|
c.syntax = :expect
end
end