Sha256: b91a34d4074675d04b0e89ef9e068ea685d4a7e7dc7b6b58dde3684fd3344837
Contents?: true
Size: 1.13 KB
Versions: 2
Compression:
Stored size: 1.13 KB
Contents
require "sqoot" require "vcr" require "simplecov" require "simplecov-rcov" class SimpleCov::Formatter::MergedFormatter def format(result) SimpleCov::Formatter::HTMLFormatter.new.format(result) SimpleCov::Formatter::RcovFormatter.new.format(result) end end SimpleCov.formatter = SimpleCov::Formatter::MergedFormatter SimpleCov.start do add_filter '/vendor' end VCR.configure do |c| c.allow_http_connections_when_no_cassette = true c.cassette_library_dir = 'spec/cassettes' c.hook_into :fakeweb c.configure_rspec_metadata! c.default_cassette_options = { :record => :new_episodes } c.filter_sensitive_data('AFFILIATE_TOKEN') do |interaction| interaction.request.uri = '?affiliate_token=' end c.filter_sensitive_data('AUTHENTICATION_TOKEN') do |interaction| interaction.request.headers['authorization'] = 'blah' end end RSpec.configure do |c| c.extend VCR::RSpec::Macros c.treat_symbols_as_metadata_keys_with_true_values = true c.before(:each) do Sqoot.configure do |config| config.affiliate_token = "YOUR AFFILIATE TOKEN" config.authentication_token = "YOUR AUTHENTICATION TOKEN" end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
sqoot-1.0.0 | spec/spec_helper.rb |
sqoot-0.0.1 | spec/spec_helper.rb |