spec/eucalyptus/custom_audience_spec.rb in eucalyptus-0.3.3 vs spec/eucalyptus/custom_audience_spec.rb in eucalyptus-1.0.0
- old
+ new
@@ -1,14 +1,8 @@
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
@@ -25,10 +19,10 @@
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
+ audience = Eucalyptus::CustomAudience.all.first
ad_sets = audience.ad_sets
expect(ad_sets.first.targeting.custom_audiences.first['id']).to eql audience.id
end
end
end