1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
|
TEST_SUITE_DEFAULTS = {
connect_timeout: 5,
read_timeout: 5,
write_timeout: 5
}
require 'excon'
require 'excon/test/server'
require 'json'
# See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
RSpec.configure do |config|
config.expect_with :rspec do |expectations|
expectations.include_chain_clauses_in_custom_matcher_descriptions = true
end
config.mock_with :rspec do |mocks|
mocks.verify_partial_doubles = true
end
if config.files_to_run.one?
config.default_formatter = 'doc'
end
Excon.set_raise_on_warnings!(true)
end
# Load helpers
Dir["./spec/helpers/**/*.rb"].sort.each { |f| require f}
# Load shared examples and contexts
Dir["./spec/support/**/*.rb"].sort.each { |f| require f}
|