Sha256: ed56d97bb27c85cdaa7c0e6f64e723692230df9a02f48c401c0064fa28ff158b

Contents?: true

Size: 790 Bytes

Versions: 17

Compression:

Stored size: 790 Bytes

Contents

require 'test_helper'

class AlbumTest < Test::Unit::TestCase
  
  context "vimeo simple album" do
    
    setup do
      @album_id = "129077"
    end
    
    context "making api calls" do
      
      should "be able to see videos in an album" do
        stub_get("/album/#{@album_id}/videos.json", "simple/album/videos.json")
        videos = Vimeo::Simple::Album.videos(@album_id)
        
        assert_equal 20, videos.size
        first = videos.first
        assert_equal "Pause", first["title"]
      end

      should "be able to get information about an album" do
        stub_get("/album/#{@album_id}/info.json", "simple/album/info.json")
        info = Vimeo::Simple::Album.info(@album_id)
        
        assert_equal "129077", info["id"]
      end
      
    end
  end
end

Version data entries

17 entries across 17 versions & 2 rubygems

Version Path
vimeo-1.5.4 test/vimeo/simple/album_test.rb
vimeo-1.5.3 test/vimeo/simple/album_test.rb
slainer68_vimeo-1.5.2 test/vimeo/simple/album_test.rb
vimeo-1.5.2 test/vimeo/simple/album_test.rb
vimeo-1.5.1 test/vimeo/simple/album_test.rb
vimeo-1.5.0 test/vimeo/simple/album_test.rb
slainer68_vimeo-1.4.4 test/vimeo/simple/album_test.rb
slainer68_vimeo-1.4.3 test/vimeo/simple/album_test.rb
vimeo-1.4.3 test/vimeo/simple/album_test.rb
vimeo-1.4.2 test/vimeo/simple/album_test.rb
vimeo-1.4.1 test/vimeo/simple/album_test.rb
vimeo-1.4.0 test/vimeo/simple/album_test.rb
vimeo-1.3.0 test/vimeo/simple/album_test.rb
vimeo-1.2.2 test/vimeo/simple/album_test.rb
vimeo-1.2.0 test/vimeo/simple/album_test.rb
vimeo-1.1.0 test/vimeo/simple/album_test.rb
vimeo-1.0.0 test/vimeo/simple/album_test.rb