2019-12-02 03:27:11 +00:00
|
|
|
require 'simplecov'
|
2020-06-12 17:42:47 +00:00
|
|
|
require 'webmock/rspec'
|
|
|
|
|
2019-12-02 03:27:11 +00:00
|
|
|
SimpleCov.start 'rails'
|
2020-06-12 17:42:47 +00:00
|
|
|
WebMock.allow_net_connect!
|
2019-12-02 03:27:11 +00:00
|
|
|
|
2019-08-25 14:29:28 +00:00
|
|
|
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
|
|
|
|
|
|
|
|
config.shared_context_metadata_behavior = :apply_to_host_groups
|
2021-10-25 07:43:25 +00:00
|
|
|
|
|
|
|
def with_modified_env(options, &block)
|
|
|
|
ClimateControl.modify(options, &block)
|
|
|
|
end
|
2019-08-25 14:29:28 +00:00
|
|
|
end
|