spec/method_specs/artist_spec.rb in lastfm-1.12.0 vs spec/method_specs/artist_spec.rb in lastfm-1.13.0

- old
+ new

@@ -27,9 +27,21 @@ top_albums = @lastfm.artist.get_top_albums(:artist => 'Cher') top_albums.size.should > 1 end end + describe '#get_top_fans' do + it 'should get top fans' do + @lastfm.should_receive(:request).with('artist.getTopFans', { + :artist => 'Cher' + }).and_return(make_response('artist_get_top_fans')) + + top_fans = @lastfm.artist.get_top_fans(:artist => 'Cher') + top_fans.should have(50).items + top_fans.first['name'].should eql('D3xperience') + end + end + describe '#get_info' do it 'should get info' do @lastfm.should_receive(:request).with('artist.getInfo', { :artist => 'Cher' }).and_return(make_response('artist_get_info'))