mirror of
https://github.com/ditkrg/idempotent-request.git
synced 2026-01-22 22:06:44 +00:00
- fix an issue when getting an exception inside application would not delete lock, so client could receive 429 after 500
21 lines
560 B
Ruby
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
|