Sha256: 37266f77337349c892a6693fb3f1c54e6ca5ae1e3ddefb2f00d784737838e8c8

Contents?: true

Size: 602 Bytes

Versions: 21

Compression:

Stored size: 602 Bytes

Contents

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

context "Getting an offer" do
  setup do
    run_with_rescue do
      response = CityGrid::API::Content::Offers.where(
        :what => "restaurant",
        :where => "98033",
        :format => :json
      )
      response
    end
  end
  
  should("not be empty") { !topic.empty? } 
end

context "Getting an offer by listing ID" do
  setup do
    run_with_rescue do
      CityGrid::API::Content::Offers.places(
        :listing_id => 628554020
      )
    end
  end
  
  should("not be empty") { !topic.empty? } 
end

Version data entries

21 entries across 21 versions & 1 rubygems

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