spec/eucalyptus/custom_audience_spec.rb in eucalyptus-0.2.12 vs spec/eucalyptus/custom_audience_spec.rb in eucalyptus-0.2.13
- old
+ new
@@ -5,9 +5,26 @@
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.first
ad_sets = audience.ad_sets