mirror of
https://github.com/fog/fog-aws.git
synced 2022-11-09 13:50:52 -05:00
62256219f4
Also fix up various things that rubocop called out, though not everything. Mostly whitespace fixes, changing double-quotes to single if double wasn't required, changing to use ruby 2.x hash syntax where possible, etc. While tests don't run, they are no more broken than before (at least, as far as I can tell).
29 lines
787 B
Ruby
29 lines
787 B
Ruby
begin
|
|
require 'simplecov'
|
|
SimpleCov.start
|
|
SimpleCov.command_name 'Shindo'
|
|
rescue LoadError => e
|
|
$stderr.puts "not recording test coverage: #{e.inspect}"
|
|
end
|
|
|
|
require File.expand_path('../../lib/fog/aws', __FILE__)
|
|
|
|
Bundler.require(:test)
|
|
|
|
Excon.defaults.merge!(debug_request: true, debug_response: true)
|
|
|
|
require File.expand_path(File.join(File.dirname(__FILE__), 'helpers', 'mock_helper'))
|
|
|
|
# This overrides the default 600 seconds timeout during live test runs
|
|
unless Fog.mocking?
|
|
Fog.timeout = ENV['FOG_TEST_TIMEOUT'] || 2_000
|
|
Fog::Logger.warning "Setting default fog timeout to #{Fog.timeout} seconds"
|
|
end
|
|
|
|
def lorem_file
|
|
File.open(File.dirname(__FILE__) + '/lorem.txt', 'r')
|
|
end
|
|
|
|
def array_differences(array_a, array_b)
|
|
(array_a - array_b) | (array_b - array_a)
|
|
end
|