module RSpec::RetryEx

Constants

VERSION

Public Class Methods

setup() click to toggle source
# File lib/rspec/retry_ex.rb, line 6
def self.setup
  RSpec.configure do |config|
    config.add_setting :rspec_retry_ex_retry_errors, default: []
  end
end

Public Instance Methods

retry_ex(**options) { || ... } click to toggle source
# File lib/rspec/retry_ex.rb, line 12
def retry_ex(**options)
  handler = RetryHandler.new(options)
  handler.run do
    yield
  end
end