Sha256: b6d55bc2ddab1270dba481cd127d0d385c11d218648744bc9f68f2a75274e1fb

Contents?: true

Size: 694 Bytes

Versions: 8

Compression:

Stored size: 694 Bytes

Contents

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

context 'when included by FbGraph::Application' do
  describe FbGraph::Connections::Subscriptions, '#subscriptions' 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

8 entries across 8 versions & 2 rubygems

Version Path
fb_graph-1.0.7 spec/fb_graph/connections/subscriptions_spec.rb
fb_graph-1.0.6 spec/fb_graph/connections/subscriptions_spec.rb
fb_graph-1.0.5 spec/fb_graph/connections/subscriptions_spec.rb
palidanx-fb_graph-1.0.4 spec/fb_graph/connections/subscriptions_spec.rb
fb_graph-1.0.4 spec/fb_graph/connections/subscriptions_spec.rb
fb_graph-1.0.3 spec/fb_graph/connections/subscriptions_spec.rb
fb_graph-1.0.2 spec/fb_graph/connections/subscriptions_spec.rb
fb_graph-1.0.1 spec/fb_graph/connections/subscriptions_spec.rb