test/test_gowalla.rb in gowalla-0.1.1 vs test/test_gowalla.rb in gowalla-0.1.2
- old
+ new
@@ -12,9 +12,15 @@
stub_get("http://pengwynn:0U812@api.gowalla.com/spots?lat=%2B33.237593417&lng=-96.960559033&radius=50", "spots.json")
spots = @client.list_spots(:lat => 33.237593417, :lng => -96.960559033, :radius => 50)
spots.first.name.should == 'Gnomb Bar'
spots.first.radius_meters.should == 50
end
+
+ should "Retrieve a list of spots within a specified bounds" do
+ stub_get("http://pengwynn:0U812@api.gowalla.com/spots?sw=(39.25565142103586%2C%20-8.717308044433594)&nw=(39.31411296530539%2C%20-8.490715026855469)", "spots.json")
+ spots = @client.list_spots(:sw => "(39.25565142103586, -8.717308044433594)", :nw => "(39.31411296530539, -8.490715026855469)")
+ spots.first.name.should == 'Gnomb Bar'
+ end
should "Retrieve information about a specific spot" do
stub_get('http://pengwynn:0U812@api.gowalla.com/spots/18568', 'spot.json')
spot = @client.spot(18568)
spot.name.should == "Wahoo's"