Sha256: dedf0de126b39234170c8a280dafcd84e10f50c42d5aaac13686cff3380e3c35

Contents?: true

Size: 605 Bytes

Versions: 6

Compression:

Stored size: 605 Bytes

Contents

require 'spec_helper'

describe FbGraph2::Edge::Subscriptions do
  context 'included in App' do
    describe '#subscriptions' do
      let(:app) { FbGraph2::App.app('app_token') }
      it 'should return an Array of FbGraph2::Struct::Subscription' do
        subscriptions = mock_graph :get, 'app/subscriptions', 'app/subscriptions', access_token: 'app_token' do
          app.subscriptions
        end
        subscriptions.should_not be_blank
        subscriptions.each do |subscription|
          subscription.should be_instance_of FbGraph2::Struct::Subscription
        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
fb_graph2-0.1.0 spec/fb_graph2/edge/subscriptions_spec.rb
fb_graph2-0.0.11 spec/fb_graph2/edge/subscriptions_spec.rb
fb_graph2-0.0.10 spec/fb_graph2/edge/subscriptions_spec.rb
fb_graph2-0.0.9 spec/fb_graph2/edge/subscriptions_spec.rb
fb_graph2-0.0.8 spec/fb_graph2/edge/subscriptions_spec.rb
fb_graph2-0.0.7 spec/fb_graph2/edge/subscriptions_spec.rb