Sha256: 2baf0c3223b6e896fe1148e68c58b99943bb2d6702f04e1f7948b9530f04753e
Contents?: true
Size: 1.23 KB
Versions: 11
Compression:
Stored size: 1.23 KB
Contents
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) $LOAD_PATH.unshift(File.dirname(__FILE__)) RSPEC_ROOT = File.dirname(__FILE__) GEM_ROOT = File.expand_path("..", RSPEC_ROOT) require 'simplecov' SimpleCov.root GEM_ROOT SimpleCov.start do add_filter "/spec/" add_filter "/.bundle/" end require 'dotenv' require 'rspec' require 'rspec/its' require 'webmock/rspec' require 'factory_bot' require 'faker' require 'byebug' require 'hubspot-api-ruby' Dotenv.load('.env.test') # Requires supporting files with custom matchers and macros, etc, # in ./support/ and its subdirectories. Dir["#{RSPEC_ROOT}/support/**/*.rb"].each {|f| require f} # Require shared examples Dir["#{RSPEC_ROOT}/shared_examples/**/*.rb"].each {|f| require f} RSpec.configure do |config| config.before(:all) do Hubspot.configure(access_token: ENV.fetch("HUBSPOT_ACCESS_TOKEN")) end config.before(:each) do Hubspot.configure(access_token: ENV.fetch("HUBSPOT_ACCESS_TOKEN")) end # config.after(:each) do # Hubspot::Config.reset! # end config.filter_run_when_matching :focus # Setup FactoryBot config.include FactoryBot::Syntax::Methods config.before(:suite) do FactoryBot.find_definitions end config.extend CassetteHelper end
Version data entries
11 entries across 11 versions & 1 rubygems