Sha256: 66b3a941896043d64fc98a352b1bbb2daa9fdf927834e01e77fe3498d1fe477e

Contents?: true

Size: 651 Bytes

Versions: 8

Compression:

Stored size: 651 Bytes

Contents

require 'spec_helper'

describe Intown::Event do
  before :each do
    Intown.configure do |c|
      c.app_id = "test"
    end
  end
  context "Fetching events for an unknown band" do
    it "should return nil" do
      VCR.use_cassette("fetch events for unknown band") do
        events = Intown::Event.list(:name => "GoobleGobble124")
        events.should be_nil
      end
    end
  end

  context "Fetching events for an unknown band" do
    it "should return nil" do
      VCR.use_cassette("fetch events for known band") do
        events = Intown::Event.list(:name => "Blame Sally")
        events.length.should >= 0
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
intown-0.2 spec/acceptance/fetch_events_by_artist_spec.rb
intown-0.1.6 spec/acceptance/fetch_events_by_artist_spec.rb
intown-0.1.5 spec/acceptance/fetch_events_by_artist_spec.rb
intown-0.1.4 spec/acceptance/fetch_events_by_artist_spec.rb
intown-0.1.3 spec/acceptance/fetch_events_by_artist_spec.rb
intown-0.1.2 spec/acceptance/fetch_events_by_artist_spec.rb
intown-0.1.1 spec/acceptance/fetch_events_by_artist_spec.rb
intown-0.1.0 spec/acceptance/fetch_events_by_artist_spec.rb