Sha256: a232d6763c8264cdafbc057a2740a21c9197d8f6c1ebdf22dcf153c3a2158686

Contents?: true

Size: 665 Bytes

Versions: 5

Compression:

Stored size: 665 Bytes

Contents

require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')

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)
  end

  describe '#get_members' do
    it 'should get the members\' info' do
      @lastfm.should_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
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
lastfm-1.27.3 spec/method_specs/group_spec.rb
lastfm-1.27.2 spec/method_specs/group_spec.rb
lastfm-1.27.1 spec/method_specs/group_spec.rb
lastfm-1.27.0 spec/method_specs/group_spec.rb
lastfm-1.26.0 spec/method_specs/group_spec.rb