Sha256: 0c78080658815df39fedef4d4b6b730aba3178dacf1d0c85ec57d743aea5be8f

Contents?: true

Size: 1.04 KB

Versions: 4

Compression:

Stored size: 1.04 KB

Contents

require 'airborne/optional_hash_type_expectations'
require 'airborne/path_matcher'
require 'airborne/request_expectations'
require 'airborne/rest_client_requester'
require 'airborne/rack_test_requester'
require 'airborne/base'

RSpec.configure do |config|
  config.add_setting :base_url
  config.add_setting :match_expected
  config.add_setting :match_actual
  config.add_setting :match_expected_default, default: true
  config.add_setting :match_actual_default, default: false
  config.add_setting :headers
  config.add_setting :rack_app
  config.add_setting :requester_type
  config.add_setting :requester_module
  config.before do |example|
    config.match_expected = example.metadata[:match_expected].nil? ?
      Airborne.configuration.match_expected_default? : example.metadata[:match_expected]
    config.match_actual = example.metadata[:match_actual].nil? ?
      Airborne.configuration.match_actual_default? : example.metadata[:match_actual]
  end

  # Include last since it depends on the configuration already being added
  config.include Airborne
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
airborne-0.3.2 lib/airborne.rb
airborne-0.3.1 lib/airborne.rb
airborne-0.3.0 lib/airborne.rb
airborne-0.2.13 lib/airborne.rb