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