Sha256: 9c5ef58e7f2c691ead19cf75f83c4d50b1e70d4e99ad1e5854fde1b169defd9c
Contents?: true
Size: 740 Bytes
Versions: 1
Compression:
Stored size: 740 Bytes
Contents
if ENV['CI'] == 'true' require 'simplecov' require 'codecov' SimpleCov.formatter = SimpleCov::Formatter::Codecov SimpleCov.start do add_filter '/spec/' end end require 'rspec' require 's3repo' require 'vcr' VCR.configure do |c| c.cassette_library_dir = 'spec/fixtures/cassettes' c.hook_into :webmock c.configure_rspec_metadata! c.before_record do |i| i.request.headers.delete 'Authorization' end end require 'climate_control' AUTH_OPTS = { S3_BUCKET: 'amylum', AWS_REGION: 'us-east-1', AWS_SECRET_ACCESS_KEY: 'accesskey', AWS_ACCESS_KEY_ID: 'sekritkey' }.freeze def with_auth(&block) opts = AUTH_OPTS.dup.map { |k, v| [k, ENV.fetch("REAL_#{k}", v)] } ClimateControl.modify(Hash[opts], &block) end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
s3repo-1.0.0 | spec/spec_helper.rb |