Sha256: ff82e7a663605edc2d47daddc96f909f4404d58c131578308a9a30c6af756853

Contents?: true

Size: 543 Bytes

Versions: 3

Compression:

Stored size: 543 Bytes

Contents

require 'spec_helper'

describe FbGraph::Connections::QuestionOptions, '#options' do
  context 'when included by FbGraph::Question' do
    it 'should return options as FbGraph::QuestionOption' do
      mock_graph :get, '12345/question_options', 'questions/options/matake_private', :access_token => 'access_token' do
        options = FbGraph::Question.new('12345', :access_token => 'access_token').options
        options.each do |option|
          option.should be_instance_of(FbGraph::QuestionOption)
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
fb_graph-2.2.2 spec/fb_graph/connections/question_options_spec.rb
fb_graph-2.2.1 spec/fb_graph/connections/question_options_spec.rb
fb_graph-2.2.0 spec/fb_graph/connections/question_options_spec.rb