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

- old
+ new

@@ -2,21 +2,21 @@ describe '#group' do before { init_lastfm } it 'should return an instance of Lastfm::Group' do - @lastfm.group.should be_an_instance_of(Lastfm::MethodCategory::Group) + expect(@lastfm.group).to be_an_instance_of(Lastfm::MethodCategory::Group) end describe '#get_members' do it 'should get the members\' info' do - @lastfm.should_receive(:request).with('group.getMembers', { + expect(@lastfm).to receive(:request).with('group.getMembers', { :group => 'Linux', :limit => nil, :page => nil }).and_return(make_response('group_get_members')) members = @lastfm.group.get_members(:group => 'Linux') - members[0]['name'].should == 'RJ' - members.size.should == 1 + expect(members[0]['name']).to eq('RJ') + expect(members.size).to eq(1) end end end