Sha256: 826e25db77cf0a09f2879ae4d826577bbb4b7587ad4826cb9d1fc1f8c991c39b

Contents?: true

Size: 1.67 KB

Versions: 24

Compression:

Stored size: 1.67 KB

Contents

$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
$LOAD_PATH.unshift(File.dirname(__FILE__))
Dir[File.dirname(__FILE__).concat("/support/**/*.rb")].each { |f| require f }

require 'onfido'
require 'webmock/rspec'
require 'rspec/its'

WebMock.disable_net_connect!(allow_localhost: true)

RSpec.configure do |config|
  config.expect_with :rspec do |expectations|
    # This option will default to `true` in RSpec 4. It makes the `description`
    # and `failure_message` of custom matchers include text for helper methods
    # defined using `chain`, e.g.:
    # be_bigger_than(2).and_smaller_than(4).description
    #   # => "be bigger than 2 and smaller than 4"
    # ...rather than:
    #   # => "be bigger than 2"
    expectations.include_chain_clauses_in_custom_matcher_descriptions = true
  end

  config.mock_with :rspec do |mocks|
    # Prevents you from mocking or stubbing a method that does not exist on
    # a real object. This is generally recommended, and will default to
    # `true` in RSpec 4.
    mocks.verify_partial_doubles = true
  end

  config.order = :random
  config.filter_run :focus
  config.run_all_when_everything_filtered = true
  config.disable_monkey_patching!
  config.raise_errors_for_deprecations!
  config.warnings = false
  config.expose_dsl_globally = true

  # Seed global randomization in this process using the `--seed` CLI option.
  # Setting this allows you to use `--seed` to deterministically reproduce
  # test failures related to randomization by passing the same `--seed` value
  # as the one that triggered the failure.
  Kernel.srand config.seed

  config.before(:each) do
    stub_request(:any, /onfido.com/).to_rack(FakeOnfidoAPI)
  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
onfido-1.1.1 spec/spec_helper.rb
onfido-0.15.1 spec/spec_helper.rb
onfido-1.1.0 spec/spec_helper.rb
onfido-1.0.0 spec/spec_helper.rb
onfido-0.15.0 spec/spec_helper.rb
onfido-0.14.0 spec/spec_helper.rb
onfido-0.13.0 spec/spec_helper.rb
onfido-0.12.0 spec/spec_helper.rb
onfido-0.11.0 spec/spec_helper.rb
onfido-0.10.0 spec/spec_helper.rb
onfido-0.9.0 spec/spec_helper.rb
onfido-0.8.4 spec/spec_helper.rb
onfido-0.8.3 spec/spec_helper.rb
onfido-0.8.2 spec/spec_helper.rb
onfido-0.8.1 spec/spec_helper.rb
onfido-0.7.1 spec/spec_helper.rb
onfido-0.7.0 spec/spec_helper.rb
onfido-0.6.1 spec/spec_helper.rb
onfido-0.6.0 spec/spec_helper.rb
onfido-0.5.0 spec/spec_helper.rb