Sha256: 991e991baf11a6f12ef7cdd68b7fed2d42e9bb1bfc68227b597b06936b2afe35
Contents?: true
Size: 645 Bytes
Versions: 5
Compression:
Stored size: 645 Bytes
Contents
require File.dirname(__FILE__) + '/../lib/newslettre' require 'vcr' require 'rspec-spies' require 'timecop' NEWSLETTRE_CONFIG = YAML.load_file File.dirname(__FILE__) + "/../config/newslettre.yml" VCR.config do |c| c.cassette_library_dir = "spec/cassettes" c.stub_with :webmock c.filter_sensitive_data('<<USERNAME>>') { Curl::PostField.content "api_user", NEWSLETTRE_CONFIG['sendgrid']['username'] } c.filter_sensitive_data('<<PASSWORD>>') { Curl::PostField.content "api_key", NEWSLETTRE_CONFIG['sendgrid']['password'] } c.default_cassette_options = { :record => :once } end RSpec.configure do |c| c.extend VCR::RSpec::Macros end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
newslettre-0.2.4 | spec/spec_helper.rb |
newslettre-0.2.3 | spec/spec_helper.rb |
newslettre-0.2.2 | spec/spec_helper.rb |
newslettre-0.2.1 | spec/spec_helper.rb |
newslettre-0.2.0 | spec/spec_helper.rb |