spec/eucalyptus/ad_spec.rb in eucalyptus-0.2.5 vs spec/eucalyptus/ad_spec.rb in eucalyptus-0.2.6
- old
+ new
@@ -7,9 +7,18 @@
end
end
let(:ad) { Eucalyptus::Ad.all.last }
+ describe '#find' do
+ it 'retuns an ad' do
+ VCR.use_cassette("ad") do
+ ad = Eucalyptus::Ad.all.last
+ Eucalyptus::Ad.find(ad.id)
+ end
+ end
+ end
+
describe '#insights' do
it 'returns an array of insights for the account' do
VCR.use_cassette("ad_set_insights") do
active_ad = Eucalyptus::Ad.all.find{|ad| ad.adgroup_status == "ACTIVE"}
expect(active_ad.insights).to be_a Array