1
0
Fork 0
mirror of https://github.com/fog/fog-aws.git synced 2022-11-09 13:50:52 -05:00
fog--fog-aws/tests/helper.rb
2015-01-05 09:11:37 -08:00

24 lines
691 B
Ruby

require "codeclimate-test-reporter"
CodeClimate::TestReporter.start
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
if Fog.mocking?
Fog.timeout = ENV['FOG_TEST_TIMEOUT'] || 2000
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