Sha256: b02e800074e088878394559d0f97931247ac0ab10015d7f84e9bc6172ecd8a06
Contents?: true
Size: 1.05 KB
Versions: 20
Compression:
Stored size: 1.05 KB
Contents
require File.join(File.dirname(__FILE__), '../../spec_helper') describe FbGraph::Connections::FormerParticipants, '#former_participants' do before do fake_json(:get, '12345/former_participants?access_token=access_token&no_cache=true', 'thread/former_participants/private') end it 'should use cached contents as default' do lambda do FbGraph::Thread.new(12345, :access_token => 'access_token').former_participants end.should_not request_to '12345/former_participants?access_token=access_token' end it 'should not use cached contents when options are specified' do lambda do FbGraph::Thread.new(12345).former_participants(:no_cache => true) end.should request_to '12345/former_participants?no_cache=true' end it 'should return former_participants as FbGraph::User' do former_participants = FbGraph::Thread.new(12345, :access_token => 'access_token').former_participants(:no_cache => true) former_participants.each do |former_participant| former_participant.should be_instance_of(FbGraph::User) end end end
Version data entries
20 entries across 20 versions & 1 rubygems