Sha256: 2a99f6ba2acb143f40cb9328cd2563a69ee00a21839c9d9ca94d303bb75862a5
Contents?: true
Size: 764 Bytes
Versions: 2
Compression:
Stored size: 764 Bytes
Contents
describe "Venue" do describe "initialize" do it "should initialize with some attributes" do venue = Zvents::Venue.new({creator: 'Austin Fonacier'}) expect(venue.creator).to eql("Austin Fonacier") end # rake end describe 'self.find' do before :each do Zvents.api_key = ENV['ZVENT_API_KEY'] end it "should return a new venue instance" do venue = Zvents::Venue.find(17369152) expect(venue).to be_kind_of(Zvents::Venue) end it "should throw an error if no venue can be found" do expect { Zvents::Venue.find('bad_id') }.to raise_error(Zvents::VenueNotFoundError) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
zvents-0.1.1 | spec/venue_spec.rb |
zvents-0.1.0 | spec/venue_spec.rb |