test/unit/test_album.rb in rockstar-0.5.2 vs test/unit/test_album.rb in rockstar-0.6.0

- old
+ new

@@ -23,10 +23,11 @@ test 'should be able to load album info' do @album.load_info assert_equal('http://www.last.fm/music/Carrie+Underwood/Some+Hearts', @album.url) assert_equal(Time.mktime(2005, 11, 15, 00, 00, 00), @album.release_date) + assert_match(/debut album from fourth-season American Idol winner/, @album.summary) end test 'should be able to find an ablum' do album = Rockstar::Album.find('Carrie Underwood', 'Some Hearts') assert_equal('Carrie Underwood', album.artist) @@ -37,17 +38,19 @@ album = Rockstar::Album.find('Carrie Underwood', 'Some Hearts', :include_info => true) assert_equal('Carrie Underwood', album.artist) assert_equal('Some Hearts', album.name) assert_equal('http://www.last.fm/music/Carrie+Underwood/Some+Hearts', album.url) assert_equal(Time.mktime(2005, 11, 15, 00, 00, 00), album.release_date) + assert_match(/debut album from fourth-season American Idol winner/, album.summary) end test "should be able to request detailed album info on initialize" do album = Rockstar::Album.new('Carrie Underwood', 'Some Hearts', :include_info => true) assert_equal('Carrie Underwood', album.artist) assert_equal('Some Hearts', album.name) assert_equal('http://www.last.fm/music/Carrie+Underwood/Some+Hearts', album.url) assert_equal(Time.mktime(2005, 11, 15, 00, 00, 00), album.release_date) + assert_match(/debut album from fourth-season American Idol winner/, album.summary) end test 'should have an image method that accepts a type' do @album.load_info assert_equal('http://userserve-ak.last.fm/serve/34s/34894445.png', @album.image(:small))