unless ENV['CI']
  require 'simplecov'
  SimpleCov.start do
    add_filter '/spec/'
    minimum_coverage(99.15)
  end
end

ENV['RACK_ENV'] = "test"

require 'eventbrite'
require 'rspec'
require 'rspec/its'
require 'webmock/rspec'
require 'pry'
require 'factory_girl'
require 'faker'

# Load Files in Support directory
Dir["./spec/support/**/*.rb"].sort.each {|f| require f}

# Rspec Config
RSpec.configure do |config|
  config.expect_with :rspec do |c|
    c.syntax = :expect
  end
  config.include FactoryGirl::Syntax::Methods
end

FactoryGirl.find_definitions