Sha256: 876dd673e0318c03bfd0accb9cd978079b2f5ed563fac6ad279e142507b13c0d

Contents?: true

Size: 494 Bytes

Versions: 18

Compression:

Stored size: 494 Bytes

Contents

require 'spec_helper'

describe FbGraph::Connections::Outbox, '#outbox' do
  # NOTE:
  #  This connection returns Post instead of Thread for now.
  #  See outbox.rb for more details.
  it 'should return threads as FbGraph::Post' do
    mock_graph :get, 'me/outbox', 'users/outbox/me_private', :access_token => 'access_token' do
      threads = FbGraph::User.me('access_token').outbox
      threads.each do |thread|
        thread.should be_instance_of(FbGraph::Post)
      end
    end
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
fb_graph-2.1.5 spec/fb_graph/connections/outbox_spec.rb
fb_graph-2.1.4 spec/fb_graph/connections/outbox_spec.rb
fb_graph-2.1.3 spec/fb_graph/connections/outbox_spec.rb
fb_graph-2.1.2 spec/fb_graph/connections/outbox_spec.rb
fb_graph-2.1.1 spec/fb_graph/connections/outbox_spec.rb
fb_graph-2.1.0 spec/fb_graph/connections/outbox_spec.rb
fb_graph-2.1.0.alpha spec/fb_graph/connections/outbox_spec.rb
fb_graph-2.0.2 spec/fb_graph/connections/outbox_spec.rb
fb_graph-2.0.1 spec/fb_graph/connections/outbox_spec.rb
fb_graph-2.0.0 spec/fb_graph/connections/outbox_spec.rb
fb_graph-2.0.0.beta spec/fb_graph/connections/outbox_spec.rb
fb_graph-2.0.0.alpha spec/fb_graph/connections/outbox_spec.rb
fb_graph-1.9.5 spec/fb_graph/connections/outbox_spec.rb
fb_graph-1.9.4 spec/fb_graph/connections/outbox_spec.rb
fb_graph-1.9.3 spec/fb_graph/connections/outbox_spec.rb
fb_graph-1.9.2 spec/fb_graph/connections/outbox_spec.rb
fb_graph-1.9.1 spec/fb_graph/connections/outbox_spec.rb
fb_graph-1.9.0 spec/fb_graph/connections/outbox_spec.rb