Sha256: 545d3343bcd7274f8194a36c90d6cd41c45b72e4581332050ef778bd5bb4c89a
Contents?: true
Size: 892 Bytes
Versions: 41
Compression:
Stored size: 892 Bytes
Contents
require 'spec_helper' describe FbGraph::Connections::Senders, '#senders' do it 'should use cached contents as default' do lambda do FbGraph::Thread.new(12345, :access_token => 'access_token').senders end.should_not request_to '12345/senders?access_token=access_token' end it 'should not use cached contents when options are specified' do lambda do FbGraph::Thread.new(12345).senders(:no_cache => true) end.should request_to '12345/senders?no_cache=true' end it 'should return senders as FbGraph::User' do mock_graph :get, '12345/senders', 'thread/senders/private', :params => {:no_cache => 'true'}, :access_token => 'access_token' do senders = FbGraph::Thread.new(12345, :access_token => 'access_token').senders(:no_cache => true) senders.each do |sender| sender.should be_instance_of(FbGraph::User) end end end end
Version data entries
41 entries across 41 versions & 1 rubygems