spec/method_specs/artist_spec.rb in lastfm-1.26.0 vs spec/method_specs/artist_spec.rb in lastfm-1.27.0
- old
+ new
@@ -5,9 +5,21 @@
it 'should return an instance of Lastfm::Artist' do
@lastfm.artist.should be_an_instance_of(Lastfm::MethodCategory::Artist)
end
+ describe '#get_correction' do
+ it 'should get corrections' do
+ @lastfm.should_receive(:request).with('artist.getCorrection', {
+ :artist => 'Guns N Roses'
+ }).and_return(make_response('artist_get_correction'))
+
+ corrections = @lastfm.artist.get_correction(:artist => 'Guns N Roses')
+ corrections[0]['artist']['name'].should == "Guns N' Roses"
+ corrections[0]['artist']['url'].should == 'http://www.last.fm/music/Guns+N%27+Roses'
+ end
+ end
+
describe '#get_top_tracks' do
it 'should get top tracks' do
@lastfm.should_receive(:request).with('artist.getTopTracks', {
:artist => 'Cher'
}).and_return(make_response('artist_get_top_tracks'))