Sha256: 4c992f0d27bd4cd78b4af8960f19960a341919771145aa991efa7ef6ca85ba4d

Contents?: true

Size: 694 Bytes

Versions: 7

Compression:

Stored size: 694 Bytes

Contents

require File.join(File.dirname(__FILE__), '../../spec_helper')

describe FbGraph::Connections::Subscriptions, '#subscriptions' do
  context 'when included by FbGraph::Application' do
    before(:all) do
      fake_json(:get, 'fb_graph/subscriptions?access_token=access_token', 'applications/subscriptions/fb_graph_private')
    end

    context 'when access_token is given' do
      it 'should return liked pages as FbGraph::Page' do
        subscriptions = FbGraph::Application.new('fb_graph', :access_token => 'access_token').subscriptions
        subscriptions.each do |subscription|
          subscription.should be_instance_of(FbGraph::Subscription)
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
fb_graph-1.1.6 spec/fb_graph/connections/subscriptions_spec.rb
fb_graph-1.1.5 spec/fb_graph/connections/subscriptions_spec.rb
fb_graph-1.1.4 spec/fb_graph/connections/subscriptions_spec.rb
fb_graph-1.1.3 spec/fb_graph/connections/subscriptions_spec.rb
fb_graph-1.1.2 spec/fb_graph/connections/subscriptions_spec.rb
fb_graph-1.1.1 spec/fb_graph/connections/subscriptions_spec.rb
fb_graph-1.1.0 spec/fb_graph/connections/subscriptions_spec.rb