Sha256: 54ad5411921de8c1b66c911084b3ef9497cb9bbf831aaf8bb7d3492215e89327

Contents?: true

Size: 444 Bytes

Versions: 4

Compression:

Stored size: 444 Bytes

Contents

require 'spec_helper'

describe FbGraph::Connections::Questions do
  it 'should return an Array of Questions' do
    mock_graph :get, 'me/questions', 'users/questions/sample', :access_token => 'access_token' do
      questions = FbGraph::User.me('access_token').questions
      questions.class.should == FbGraph::Connection
      questions.each do |question|
        question.should be_instance_of(FbGraph::Question)
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
fb_graph-2.2.6 spec/fb_graph/connections/questions_spec.rb
fb_graph-2.2.5 spec/fb_graph/connections/questions_spec.rb
fb_graph-2.2.4 spec/fb_graph/connections/questions_spec.rb
fb_graph-2.2.3 spec/fb_graph/connections/questions_spec.rb