Sha256: 0968fb5a6aad62f50e4a33ed92dc08a4f6191405f37bbf6b7ac624aeeafb1986
Contents?: true
Size: 934 Bytes
Versions: 3
Compression:
Stored size: 934 Bytes
Contents
require File.expand_path('../../spec_helper', __FILE__) describe Yammer::Api::Topic 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 '#likes' do it 'should check if user likes open graph object' do subject.should_receive(:get).with('/api/v1/likes/open_graph_object/1') subject.likes_open_graph_object?(1) end it 'should like open graph object' do subject.should_receive(:post).with('/api/v1/likes', :id => 1, :type => 'OpenGraphObject') subject.like('OpenGraphObject', 1) end it 'should unlike open graph object' do subject.should_receive(:delete).with('/api/v1/likes/1') subject.unlike(1) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
yammer-client-0.1.8 | spec/api/like_spec.rb |
yammer-client-0.1.7 | spec/api/like_spec.rb |
yammer-client-0.1.6 | spec/api/like_spec.rb |