Sha256: 02ce6ce5a1d0cab673c739da05437444dbebca10636cd91e3ca436986b799f01

Contents?: true

Size: 572 Bytes

Versions: 22

Compression:

Stored size: 572 Bytes

Contents

require 'spec_helper'

describe FbGraph::Connections::Notifications do
  describe '#notifications' do
    it 'should return notifications as FbGraph::Notification' do
      mock_graph :get, 'me/notifications', 'users/notifications/all', :params => {
        :include_read => 'true'
      }, :access_token => 'access_token' do
        notifications = FbGraph::User.me('access_token').notifications(:include_read => true)
        notifications.each do |notification|
          notification.should be_instance_of FbGraph::Notification
        end
      end
    end
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
fb_graph-2.4.19 spec/fb_graph/connections/notifications_spec.rb
fb_graph-2.4.18 spec/fb_graph/connections/notifications_spec.rb
fb_graph-2.4.17 spec/fb_graph/connections/notifications_spec.rb
fb_graph-2.4.16 spec/fb_graph/connections/notifications_spec.rb
fb_graph-2.4.15 spec/fb_graph/connections/notifications_spec.rb
fb_graph-2.4.14 spec/fb_graph/connections/notifications_spec.rb
fb_graph-2.4.13 spec/fb_graph/connections/notifications_spec.rb
fb_graph-2.4.12 spec/fb_graph/connections/notifications_spec.rb
fb_graph-2.4.11 spec/fb_graph/connections/notifications_spec.rb
fb_graph-2.4.10 spec/fb_graph/connections/notifications_spec.rb
fb_graph-2.4.9 spec/fb_graph/connections/notifications_spec.rb
fb_graph-2.4.8 spec/fb_graph/connections/notifications_spec.rb
fb_graph-2.4.7 spec/fb_graph/connections/notifications_spec.rb
fb_graph-2.4.6 spec/fb_graph/connections/notifications_spec.rb
fb_graph-2.4.4 spec/fb_graph/connections/notifications_spec.rb
fb_graph-2.4.3 spec/fb_graph/connections/notifications_spec.rb
fb_graph-2.4.2 spec/fb_graph/connections/notifications_spec.rb
fb_graph-2.4.1 spec/fb_graph/connections/notifications_spec.rb
fb_graph-2.4.0 spec/fb_graph/connections/notifications_spec.rb
fb_graph-2.3.2 spec/fb_graph/connections/notifications_spec.rb