Sha256: bee3a17f350746cedd5c193877a41781157319802c684df55adf557fdc84500b

Contents?: true

Size: 505 Bytes

Versions: 1

Compression:

Stored size: 505 Bytes

Contents

describe '#event' do
  before { init_lastfm }

  it 'should return an instance of Lastfm::Event' do
    expect(@lastfm.event).to be_an_instance_of(Lastfm::MethodCategory::Event)
  end

  describe '#get_info' do
    it 'should get info' do
      expect(@lastfm).to receive(:request).with('event.getInfo', {
        :event => 1073657
      }).and_return(make_response('event_get_info'))
      info = @lastfm.event.get_info(:event => 1073657)
      expect(info['title']).to eq('Neko Case')
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
lastfm-1.27.4 spec/method_specs/event_spec.rb