Sha256: 8e61d800346bece7f9a3d8c6a7a5720868c5bfd96fc60fc6ff5ba13a5ccb739f
Contents?: true
Size: 728 Bytes
Versions: 3
Compression:
Stored size: 728 Bytes
Contents
require 'helper' class TripsTest < Test::Unit::TestCase context "When using the Gowalla API and working with trips" do setup do @client = gowalla_test_client end should "retrieve a list of trips" do stub_get('http://pengwynn:0U812@api.gowalla.com/trips', 'trips.json') trips = @client.trips trips.first.name.should == 'London Pub Crawl' trips.first.spots.first.url.should == '/spots/164009' end should "retrieve information about a specific trip" do stub_get('http://pengwynn:0U812@api.gowalla.com/trips/1', 'trip.json') trip = @client.trip(1) trip.creator.last_name.should == 'Gowalla' trip.map_bounds.east.should == -63.457031 end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
gowalla-0.4.2 | test/trips_test.rb |
gowalla-0.4.1 | test/trips_test.rb |
gowalla-0.4.0 | test/trips_test.rb |