Sha256: 51519f6491acdb5490bcbde652b5b342eb077381e7c755a76e3523981b1af980

Contents?: true

Size: 794 Bytes

Versions: 1

Compression:

Stored size: 794 Bytes

Contents

NEWSLETTRE_CONFIG = YAML.load_file File.dirname(__FILE__) + "/../../config/newslettre.yml"

require 'vcr'
require 'newslettre'

VCR.config do |c|
  c.stub_with :webmock
  c.cassette_library_dir = 'features/cassettes'
  c.filter_sensitive_data('<<USERNAME>>') { NEWSLETTRE_CONFIG['sendgrid']['username'] }
  c.filter_sensitive_data('<<PASSWORD>>') { NEWSLETTRE_CONFIG['sendgrid']['password'] }
  c.default_cassette_options = { :record => :once }
end

VCR.cucumber_tags do |t|
  t.tags '@sendgrid_adding_recipients', '@sendgrid_removing_recipients'
end

class OuterWorld
  def newslettre
    @newslettre ||= Newslettre::Client.new(NEWSLETTRE_CONFIG['sendgrid']['username'],
                                           NEWSLETTRE_CONFIG['sendgrid']['password'])
  end
end

World { OuterWorld.new }

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
newslettre-0.1.0 features/support/env.rb