require "minitest/autorun"
require "minitest/spec"
require "minitest/stub_const"

$LOAD_PATH.unshift "lib"

if ENV["COVERAGE"]
  require "coveralls"
  require "simplecov"

  SimpleCov.start do
    add_filter "/spec/"
  end
end

require "fog/core"

Dir["spec/fake_app/**/*.rb"].each do |file|
  require File.join(File.dirname(__FILE__), "..", file)
end

if ENV["COVERAGE"]
  require "coveralls"
  require "simplecov"

  SimpleCov.start do
    add_filter "/spec/"
  end
end

require "minitest/autorun"
require "minitest/spec"
require "minitest/stub_const"

$LOAD_PATH.unshift "lib"
require "fog/core"

Dir["spec/fake_app/**/*.rb"].each do |file|
  require File.join(File.dirname(__FILE__), "..", file)
end

Fix require order for coverage
Fix require order for coverage

Several files were not covered because they were included before
SimpleCov was started due to `autorun`
