Sha256: de8bd2a3989373ba4b84cd15fc810a71f4f5b1c00279726df07f2f1c70e2e9db

Contents?: true

Size: 897 Bytes

Versions: 22

Compression:

Stored size: 897 Bytes

Contents

require File.expand_path(File.join(File.dirname(__FILE__), '..', '..', 'helper'))

context "Report summary" do
  context "daily" do
    setup do
      run_with_rescue do
        SessionHelper.sales_coord.call_api CityGrid::API::Advertising::Performance,
          :daily,
          :campaignId => 786,
          :period     => 'last30Days'
      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
        SessionHelper.sales_coord.call_api CityGrid::API::Advertising::Performance,
          :actions,
          :campaignId => 786,
          :period     => 'last30Days'
      end
    end
    
    should("not be empty"){ !topic.empty? }
    should("have user actions"){ topic.userActions.length > 0 }
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
citygrid_api-0.0.28 test/api/advertising/test_performance.rb
citygrid_api-0.0.27 test/api/advertising/test_performance.rb
citygrid_api-0.0.26 test/api/advertising/test_performance.rb
citygrid_api-0.0.25 test/api/advertising/test_performance.rb
citygrid_api-0.0.24 test/api/advertising/test_performance.rb
citygrid_api-0.0.23 test/api/advertising/test_performance.rb
citygrid_api-0.0.22 test/api/advertising/test_performance.rb
citygrid_api-0.0.21 test/api/advertising/test_performance.rb
citygrid_api-0.0.20 test/api/advertising/test_performance.rb
citygrid_api-0.0.19 test/api/advertising/test_performance.rb
citygrid_api-0.0.18 test/api/advertising/test_performance.rb
citygrid_api-0.0.17 test/api/advertising/test_performance.rb
citygrid_api-0.0.16 test/api/advertising/test_performance.rb
citygrid_api-0.0.15 test/api/advertising/test_performance.rb
citygrid_api-0.0.14 test/api/advertising/test_performance.rb
citygrid_api-0.0.13 test/api/advertising/test_performance.rb
citygrid_api-0.0.12 test/api/advertising/test_performance.rb
citygrid_api-0.0.11 test/api/advertising/test_performance.rb
citygrid_api-0.0.10 test/api/advertising/test_performance.rb
citygrid_api-0.0.9 test/api/advertising/test_performance.rb