Sha256: 9bd8472547009c8ff3e60387de32b2acd1c246382030b39b540f785c3b381e2e
Contents?: true
Size: 695 Bytes
Versions: 1
Compression:
Stored size: 695 Bytes
Contents
require 'helper' class TestUser < Test::Unit::TestCase def test_should_get_top_artists FakeWeb.register_uri(:get, %r|http://ws.audioscrobbler.com/|, :body => File.read(File.dirname(__FILE__) + "/fixtures/user_artists.xml")) artists = Firstfm::User.get_top_artists("RJ") assert_equal 2, artists.size assert_equal 5702, artists.total_entries artist = artists.first assert_equal "Dream Theater", artist.name assert_equal 1797, artist.playcount assert_equal "http://www.last.fm/music/Dream+Theater", artist.url assert_equal "28503ab7-8bf2-4666-a7bd-2644bfc7cb1d", artist.mbid assert artist.streamable assert_equal 5, artist.images.size end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
firstfm-0.7.0 | test/test_user.rb |