Sha256: ecb305bd312fb06d66ed67e7ec1bff92566c50eb58e96f2019efba8272153b00
Contents?: true
Size: 1 KB
Versions: 22
Compression:
Stored size: 1 KB
Contents
require File.expand_path(File.join(File.dirname(__FILE__), '..', '..', 'helper')) context "Searching categories" do context "by listing id" do setup do run_with_rescue do SessionHelper.kunimom.call_api CityGrid::API::Advertising::Category, :search, :listingId => 3680332, :startIndex => 0, :numberResults => 10 end end should("not be empty"){ !topic.empty? } should("respond with OK"){ topic.response.code }.equals(200) should("have resources"){ !topic.categories.empty? } end context "by query" do setup do run_with_rescue do SessionHelper.kunimom.call_api CityGrid::API::Advertising::Category, :search, :keywords => "pizza", :startIndex => 0, :numberResults => 10, end end should("not be empty"){ !topic.empty? } should("respond with OK"){ topic.response.code }.equals(200) should("have resources"){ !topic.categories.empty? } end end
Version data entries
22 entries across 22 versions & 1 rubygems