Sha256: eeb8ee492a621bc8c4be31f536665cbe04df1e570dd941ee3ae94c87fd07af25

Contents?: true

Size: 826 Bytes

Versions: 3

Compression:

Stored size: 826 Bytes

Contents

begin
  require "codeclimate-test-reporter"
  CodeClimate::TestReporter.start
rescue LoadError => e
  $stderr.puts "not recording test coverage: #{e.inspect}"
end

$LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)
require 'fog/local'

Bundler.require(:test)
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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
fog-local-0.8.0 tests/helper.rb
fog-local-0.7.0 tests/helper.rb
fog-local-0.6.0 tests/helper.rb