spec/method_specs/tasteometer_spec.rb in lastfm-1.27.3 vs spec/method_specs/tasteometer_spec.rb in lastfm-1.27.4

- old
+ new

@@ -2,23 +2,23 @@ describe '#tasteometer' do before { init_lastfm } it 'should return an instance of Lastfm::Tasteometer' do - @lastfm.tasteometer.should be_an_instance_of(Lastfm::MethodCategory::Tasteometer) + expect(@lastfm.tasteometer).to be_an_instance_of(Lastfm::MethodCategory::Tasteometer) end describe '#compare' do it 'should compare users' do - @lastfm.should_receive(:request).with('tasteometer.compare', { + expect(@lastfm).to receive(:request).with('tasteometer.compare', { :type1 => 'user', :type2 => 'user', :value1 => 'foo', :value2 => 'bar', :limit => nil }).and_return(make_response('tasteometer_compare')) compare = @lastfm.tasteometer.compare(:type1 => 'user', :type2 => 'user', :value1 =>'foo', :value2 => 'bar') - compare['score'].should == '0.74' - compare['artists']['artist'][1]['name'].should == 'The Beatles' + expect(compare['score']).to eq('0.74') + expect(compare['artists']['artist'][1]['name']).to eq('The Beatles') end end end