require File.expand_path(File.dirname(__FILE__) + '/../spec_helper') describe '#group' do before { init_lastfm } it 'should return an instance of Lastfm::Group' do expect(@lastfm.group).to be_an_instance_of(Lastfm::MethodCategory::Group) end describe '#get_members' do it 'should get the members\' info' do 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') expect(members[0]['name']).to eq('RJ') expect(members.size).to eq(1) end end end