require "codeclimate-test-reporter" require "simplecov" CodeClimate::TestReporter.start SimpleCov.start do SimpleCov.maximum_coverage_drop 0.2 SimpleCov.start do add_group "Resources", "lib/rexpense/resources" add_group "Entities", "lib/rexpense/entities" add_filter "vendor" end end $LOAD_PATH.unshift File.expand_path('../../lib', __FILE__) require "rexpense" require "pry" require "vcr" Dir["spec/support/**/*.rb"].each { |f| load f } VCR.configure do |config| config.cassette_library_dir = "spec/vcr_cassettes" config.hook_into :typhoeus config.ignore_hosts "codeclimate.com" end RSpec.configure do |config| config.mock_with :rspec config.before(:each) do Rexpense.configuration.api_mode = "sandbox" Typhoeus::Expectation.clear end end