spec/api/notification_spec.rb in yammer-client-0.1.2 vs spec/api/notification_spec.rb in yammer-client-0.1.3
- old
+ new
@@ -5,18 +5,17 @@
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
+ :access_token => 'TolNOFka9Uls2DxahNi78A'
)
end
subject { @client }
- describe '#search' do
- it 'should search for stuff' do
+ describe '#notifications' do
+ it "should fetch authenticated user's notifications" do
subject.should_receive(:get).with('/api/v1/streams/notifications')
subject.notifications
end
end
end
\ No newline at end of file