Sha256: 5b438b24f87d3426f8724690371245e5560b9f65b813555fc3ce7ea2bc64fd1c

Contents?: true

Size: 622 Bytes

Versions: 25

Compression:

Stored size: 622 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}", "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

25 entries across 25 versions & 1 rubygems

Version Path
foursquare2-1.8.1 test/test_photos.rb
foursquare2-1.8.0 test/test_photos.rb
foursquare2-1.7.0 test/test_photos.rb
foursquare2-1.6.0 test/test_photos.rb
foursquare2-1.5.0 test/test_photos.rb
foursquare2-1.4.2 test/test_photos.rb
foursquare2-1.4.0 test/test_photos.rb
foursquare2-1.3.6 test/test_photos.rb
foursquare2-1.3.5 test/test_photos.rb
foursquare2-1.3.4 test/test_photos.rb
foursquare2-1.3.3 test/test_photos.rb
foursquare2-1.3.2 test/test_photos.rb
foursquare2-1.3.1 test/test_photos.rb
foursquare2-1.3.0 test/test_photos.rb
foursquare2-1.2.0 test/test_photos.rb
foursquare2-1.1.2 test/test_photos.rb
foursquare2-1.1.1 test/test_photos.rb
foursquare2-1.1.0 test/test_photos.rb
foursquare2-1.0.0 test/test_photos.rb
foursquare2-0.9.9 test/test_photos.rb