Sha256: f2345838694363df32360ccb611149b1a0bf546547b37cad4e4323155cfc5552
Contents?: true
Size: 629 Bytes
Versions: 13
Compression:
Stored size: 629 Bytes
Contents
require 'helper' class TestPhotos < Test::Unit::TestCase context "When using the foursquare API and working with photos" do setup do @client = foursquare_test_client end should "fetch info for a single photo" do stub_get("https://api.foursquare.com/v2/photos/4d0fb8162d39a340637dc42b?oauth_token=#{@client.oauth_token}", "photos/photo.json") photo = @client.photo('4d0fb8162d39a340637dc42b') photo.sizes.items.count.should == 4 photo.sizes.items.first.url.should == "http://playfoursquare.s3.amazonaws.com/pix/UYU54GYOCURPAUYXH5V2U3EOM4DCX4VZPT3YOMN43H555KU2.jpg" end end end
Version data entries
13 entries across 13 versions & 1 rubygems