Sha256: 6bcb92491b5dc134c9f43e745aee28ce5a2504d68669f7c79821642c0bc4c4db

Contents?: true

Size: 630 Bytes

Versions: 13

Compression:

Stored size: 630 Bytes

Contents

require File.expand_path('../../test_helper.rb', __FILE__)

class TestVenue < Test::Unit::TestCase
  
  test "should get venues by name and country" do
    venues = Rockstar::Venue.find({:venue => 'cotton', :country => 'DE'})
    assert_equal(3, venues.size)
    assert_equal("Cotton Club", venues.first.name)
    assert_equal("Hamburg", venues.first.city)
    assert_equal("Germany", venues.first.country) 
  end
  
  test "should get events for venue" do
    venue = Rockstar::Venue.new(8807850, "INDRA")
    events = venue.events
    assert_equal(5, events.size)
    assert_equal(venue.name, events.first.venue.name)
  end

end

Version data entries

13 entries across 13 versions & 3 rubygems

Version Path
rockstar-0.8.1 test/unit/test_venue.rb
rockstar-0.8.0 test/unit/test_venue.rb
jonaustin-rockstar-0.7.1 test/unit/test_venue.rb
rockstar-0.7.1 test/unit/test_venue.rb
rockstar-0.7.0 test/unit/test_venue.rb
rockstar-0.6.4 test/unit/test_venue.rb
rockstar-0.6.3 test/unit/test_venue.rb
rockstar-0.6.2 test/unit/test_venue.rb
rockstar-custom-0.6.1 test/unit/test_venue.rb
rockstar-0.6.1 test/unit/test_venue.rb
rockstar-0.6.0 test/unit/test_venue.rb
rockstar-0.5.2 test/unit/test_venue.rb
rockstar-0.5.1 test/unit/test_venue.rb