test/test_gowalla.rb in gowalla-0.1.0 vs test/test_gowalla.rb in gowalla-0.1.1
- old
+ new
@@ -41,19 +41,18 @@
stub_get("http://pengwynn:0U812@api.gowalla.com/categories", "categories.json")
categories = @client.categories
categories.size.should == 9
categories.first.name.should == 'Architecture & Buildings'
categories.first.description.should == 'Bridge, Corporate, Home, Church, etc.'
- categories.first.categories.size.should == 15
- categories.first.categories.first.name.should == 'Bridge'
+ categories.first.spot_categories.size.should == 15
+ categories.first.spot_categories.first.name.should == 'Bridge'
end
should "retrieve information about a specific category" do
stub_get("http://pengwynn:0U812@api.gowalla.com/categories/1", "category.json")
category = @client.category(1)
category.name.should == 'Coffee Shop'
- category.id.should == 1
end
end
context "and working with Users" do
@@ -65,12 +64,12 @@
end
should "retrieve a list of the stamps the user has collected" do
stub_get('http://pengwynn:0U812@api.gowalla.com/users/1707/stamps?limit=20', 'stamps.json')
stamps = @client.stamps(1707)
- stamps.size.should == 15
- stamps.first.name.should == 'Bank Of America'
- stamps.first.tier.should == 2
+ stamps.size.should == 20
+ stamps.first.name.should == 'Juan Pelota Cafe'
+ stamps.first.location.city.should == 'Austin, TX'
end
should "retrieve a list of spots the user has visited most often" do
stub_get('http://pengwynn:0U812@api.gowalla.com/users/1707/top_spots', 'top_spots.json')
top_spots = @client.top_spots(1707)