Sha256: 9ba9a52940893fd928147e0ae870d85bd95ed05c6774c76d9b506c35fe1501bd
Contents?: true
Size: 1.02 KB
Versions: 2
Compression:
Stored size: 1.02 KB
Contents
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper') describe Eucalyptus::CustomAudience do before do Eucalyptus.configure do |config| config.access_token = ENV["ACCESS_TOKEN"] end end describe '.create' do it 'creats a new custom audience' do VCR.use_cassette('create_audience') do audience = Eucalyptus::CustomAudience.create(name: "oz-test") end end end describe '#populate' do it 'populates an audience with a list of emails' do VCR.use_cassette('populate_audience') do audience = Eucalyptus::CustomAudience.create(name: "oz-test") audience.populate(["oz@lostmy.name","dev@lostmy.name"]) end end end describe '#ad_sets' do it 'returns ad_sets which belong to the audience' do VCR.use_cassette('audience_ad_sets') do audience = Eucalyptus::CustomAudience.all.last ad_sets = audience.ad_sets expect(ad_sets.first.targeting.custom_audiences.first['id']).to eql audience.id end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
eucalyptus-0.3.3 | spec/eucalyptus/custom_audience_spec.rb |
eucalyptus-0.3.2 | spec/eucalyptus/custom_audience_spec.rb |