spec/method_specs/album_spec.rb in lastfm-1.27.0 vs spec/method_specs/album_spec.rb in lastfm-1.27.1

- old
+ new

@@ -129,9 +129,18 @@ album['tracks']['track'].size.should == 10 album['tracks']['track'][0]['name'].should == 'Believe' album['tracks']['track'][0]['duration'].should == '239' album['tracks']['track'][0]['url'].should == 'http://www.last.fm/music/Cher/_/Believe' end + + it 'works without release date' do + @lastfm.should_receive(:request).with('album.getInfo', { + :mbid => 'xxxxx' + }).and_return(make_response('album_get_info_without_release_date')) + + album = @lastfm.album.get_info(:mbid => 'xxxxx') + album['name'].should == 'Believe' + end end describe '#get_shouts' do it 'should get shouts' do @lastfm.should_receive(:request).with('album.getShouts', {