Sha256: 5681819fca9aec138273ad0327178dfb70aee3442ddc36d970c89eda34c488a2

Contents?: true

Size: 563 Bytes

Versions: 77

Compression:

Stored size: 563 Bytes

Contents

require 'spec_helper'

describe FbGraph::Connections::Outbox, '#outbox' do
  context 'before message platform transition' do
    it 'should return threads as FbGraph::Thread::BeforeTransition' 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::Thread::BeforeTransition)
        end
      end
    end
  end

  # TODO: after transition, check JSON format and put test here
end

Version data entries

77 entries across 77 versions & 1 rubygems

Version Path
fb_graph-2.7.17 spec/fb_graph/connections/outbox_spec.rb
fb_graph-2.7.16 spec/fb_graph/connections/outbox_spec.rb
fb_graph-2.7.15 spec/fb_graph/connections/outbox_spec.rb
fb_graph-2.7.14 spec/fb_graph/connections/outbox_spec.rb
fb_graph-2.7.13 spec/fb_graph/connections/outbox_spec.rb
fb_graph-2.7.12 spec/fb_graph/connections/outbox_spec.rb
fb_graph-2.7.11 spec/fb_graph/connections/outbox_spec.rb
fb_graph-2.7.10 spec/fb_graph/connections/outbox_spec.rb
fb_graph-2.7.9 spec/fb_graph/connections/outbox_spec.rb
fb_graph-2.7.8 spec/fb_graph/connections/outbox_spec.rb
fb_graph-2.7.7 spec/fb_graph/connections/outbox_spec.rb
fb_graph-2.7.6 spec/fb_graph/connections/outbox_spec.rb
fb_graph-2.7.5 spec/fb_graph/connections/outbox_spec.rb
fb_graph-2.7.4 spec/fb_graph/connections/outbox_spec.rb
fb_graph-2.7.3 spec/fb_graph/connections/outbox_spec.rb
fb_graph-2.7.2 spec/fb_graph/connections/outbox_spec.rb
fb_graph-2.7.1 spec/fb_graph/connections/outbox_spec.rb
fb_graph-2.7.0 spec/fb_graph/connections/outbox_spec.rb
fb_graph-2.6.7 spec/fb_graph/connections/outbox_spec.rb
fb_graph-2.6.6 spec/fb_graph/connections/outbox_spec.rb