spec/lastfm_spec.rb in lastfm-0.5.0 vs spec/lastfm_spec.rb in lastfm-0.6.0

- old
+ new

@@ -183,9 +183,22 @@ track['album']['image'].first['content'].should eql('http://userserve-ak.last.fm/serve/64s/8674593.jpg') track['toptags']['tag'].size.should eql(5) track['toptags']['tag'].first['name'].should eql('pop') end + it 'should get correction' do + @lastfm.should_receive(:request).with('track.getCorrection', { + :artist => 'White Stripes', + :track => 'One More Cup of Coffee', + :username => 'wainekerr', + }).and_return(make_response('track_get_correction')) + + correction = @lastfm.track.get_correction('White Stripes', 'One More Cup of Coffee', 'wainekerr') + correction['track']['name'].should eql('One More Cup of Coffee') + correction['track']['artist']['name'].should eql('The White Stripes') + correction['track']['url'].should eql('www.last.fm/music/The+White+Stripes/_/One+More+Cup+of+Coffee') + end + it 'should get xml with force array option' do @lastfm.should_receive(:request).with('track.getInfo', { :artist => 'Cher', :track => 'Believe', :username => 'youpy',