Sha256: beb78352a9b53c88113e21eb59f9d445d1ba78aded8d1ff1025b2847e2b030f0
Contents?: true
Size: 942 Bytes
Versions: 1
Compression:
Stored size: 942 Bytes
Contents
require File.expand_path(File.join(File.dirname(__FILE__), '..', '..', 'helper')) token = AuthToken.sales_coord context "Report summary" do context "daily" do setup do run_with_rescue do CityGrid::API::AdCenter::Performance.summary( :daily, :campaignId => 786, :period => 'last30Days', :token => token ) end end should("not be empty"){ !topic.empty? } should("have performance resources"){ topic.dailyCampaignPerformanceResources.length > 0 } end context "user actions" do setup do run_with_rescue do CityGrid::API::AdCenter::Performance.summary( :actions, :campaignId => 786, :period => 'last30Days', :token => token ) end end should("not be empty"){ !topic.empty? } should("have user actions"){ topic.userActions.length > 0 } end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
citygrid_api-0.0.5.1 | test/api/ad_center/test_reports.rb |