spec/eucalyptus/custom_audience_spec.rb in eucalyptus-1.0.0 vs spec/eucalyptus/custom_audience_spec.rb in eucalyptus-1.1.0
- old
+ new
@@ -12,9 +12,21 @@
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"])
+ audience.delete
+ end
+ end
+ end
+
+ describe '#remove' 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"])
+ audience.remove(["oz@lostmy.name","dev@lostmy.name"])
+ audience.delete
end
end
end
describe '#ad_sets' do