lib/airborne.rb in airborne-0.2.12 vs lib/airborne.rb in airborne-0.2.13
- old
+ new
@@ -4,11 +4,10 @@
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
@@ -20,6 +19,9 @@
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