Sha256: 3c75b3624af8eb96a293c16bf86b951677f1f53356e39669e3deee9fafafef07
Contents?: true
Size: 863 Bytes
Versions: 22
Compression:
Stored size: 863 Bytes
Contents
require File.expand_path(File.join(File.dirname(__FILE__), '..', '..', 'helper')) context "searching for a CityGrid listing" do setup do CityGrid.search :what => "sushi", :where => "Seattle" end should "create an array" do topic.is_a? Array end should_not "be empty" do topic.empty? end should "create an array containing Listing objects" do topic.reject do |listing| listing.is_a? CityGrid::Listing end.empty? end end context "searching for a special CityGrid listing" do setup do CityGrid.search :what => "el gaucho", :where => "seattle, wa" end should "create an array" do topic.is_a? Array end should_not "be empty" do topic.empty? end should "create an array containing Listing objects" do topic.reject do |listing| listing.is_a? CityGrid::Listing end.empty? end end
Version data entries
22 entries across 22 versions & 1 rubygems