Sha256: 793e1606b4cf3b3c749cea46ae308a355432186ef26c4e3b1b0bb3fa8b07caca

Contents?: true

Size: 655 Bytes

Versions: 3

Compression:

Stored size: 655 Bytes

Contents

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

describe Yammer::Api::Search do

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

  subject { @client }

  describe '#subscription' do
    it 'should create new subscription' do
      subject.should_receive(:post).with('/api/v1/subscriptions', :target_type =>'OpenGraphObject', :target_id => 1)
      subject.create_subscription('OpenGraphObject', 1)
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
yammer-client-0.1.8 spec/api/subscription_spec.rb
yammer-client-0.1.7 spec/api/subscription_spec.rb
yammer-client-0.1.6 spec/api/subscription_spec.rb