1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
|
$LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)
require 'fog/local'
require 'tmpdir'
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
|