Sha256: dfde642f49744068db38eddbb55f47e9617d597fbdef128b01a4fe4d918db59c

Contents?: true

Size: 616 Bytes

Versions: 5

Compression:

Stored size: 616 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 '#search' do
    it 'should search for stuff' do
      subject.should_receive(:get).with('/api/v1/search', { :search => 'money power women' })
      subject.search(:search => 'money power women')
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
yammer-client-0.1.8 spec/api/search_spec.rb
yammer-client-0.1.7 spec/api/search_spec.rb
yammer-client-0.1.6 spec/api/search_spec.rb
yammer-client-0.1.5 spec/api/search_spec.rb
yammer-client-0.1.4 spec/api/search_spec.rb