Sha256: 976b9cd56ce485a4fd7d98e6f25f292587bc2f9680dc7067f64459d09ecb4caa

Contents?: true

Size: 629 Bytes

Versions: 3

Compression:

Stored size: 629 Bytes

Contents

require File.expand_path('../../spec_helper', __FILE__)

describe Yammer::Api::Notification do

  before :all do
    @client = Yammer::Client.new(
      :site_url     => 'https://www.yammer.com',
      :client_id     => 'PRbTcg9qjgKsp4jjpm1pw',
      :client_secret => 'Xn7kp7Ly0TCY4GtZWkmSsqGEPg10DmMADyjWkf2U',
      :access_token  => 'TolNOFka9Uls2DxahNi78A',
      :connection_client  => Yammer::HttpConnection
    )
  end

  subject { @client }

  describe '#search' do
    it 'should search for stuff' do
      subject.should_receive(:get).with('/api/v1/streams/notifications')
      subject.notifications
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
yammer-client-0.1.2 spec/api/notification_spec.rb
yammer-client-0.1.1 spec/api/notification_spec.rb
yammer-client-0.1.0 spec/api/notification_spec.rb