Sha256: 25f233fbe80912a7245aedddaf7e985bc8851b5d6a11dd984cf6265c7713a657

Contents?: true

Size: 988 Bytes

Versions: 13

Compression:

Stored size: 988 Bytes

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.include Airborne
  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
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
airborne-0.2.12 lib/airborne.rb
airborne-0.2.11 lib/airborne.rb
airborne-0.2.10 lib/airborne.rb
airborne-0.2.9 lib/airborne.rb
airborne-0.2.8 lib/airborne.rb
airborne-0.2.7 lib/airborne.rb
airborne-0.2.6 lib/airborne.rb
airborne-0.2.5 lib/airborne.rb
airborne-0.2.4 lib/airborne.rb
airborne-0.2.3 lib/airborne.rb
airborne-0.2.2 lib/airborne.rb
airborne-0.2.1 lib/airborne.rb
airborne-0.2.0 lib/airborne.rb