Sha256: 2f088e0cb6197997da92312e2b10fe73b3d97d4823c4c269e99e5d60223a1804
Contents?: true
Size: 639 Bytes
Versions: 2
Compression:
Stored size: 639 Bytes
Contents
describe "Search" do describe "search" do before :each do Zvents.api_key = ENV['ZVENT_API_KEY'] end it "should search by some parameters and return a new search results instance" do search = Zvents.search({where: 'San Franciso'}) expect(search).to be_kind_of(Zvents::SearchResults) end # rake it "should initialize the venues for the events if it can" do search = Zvents.search({where: 'San Francisco'}) search.events.each do |event| expect(event.venue.id).to eq(event.venue_id) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
zvents-0.1.1 | spec/search_spec.rb |
zvents-0.1.0 | spec/search_spec.rb |