Sha256: ad231003441d7bbeddf9bb3a4a029ee514acb545d6ace5f1c11c1b397f2e1e06
Contents?: true
Size: 474 Bytes
Versions: 6
Compression:
Stored size: 474 Bytes
Contents
RSpec.configure do |config| # Foreman-style .env key-value file support project_root = Pathname.new(__FILE__).dirname.parent.parent.realpath dotenv = project_root.join('.env') if dotenv.exist? dotenv.each_line do |line| key, value = line.split('=') ENV[key] = value unless value.nil? end end config.before(:each, :authenticated) do AngellistApi.configure do |al| al.access_token = ENV['ANGELLIST_ACCESS_TOKEN'] end end end
Version data entries
6 entries across 6 versions & 1 rubygems