Sha256: 890c5cfb057bcc1a3a95c37bb5ae8110fe9e443a1b57b9a0d7149d80050fe744
Contents?: true
Size: 561 Bytes
Versions: 4
Compression:
Stored size: 561 Bytes
Contents
if respond_to?(:require_relative, true) require_relative 'common' else require File.dirname(__FILE__) + '/common' end describe RestGraph do after do WebMock.reset! RR.verify end should 'respect timeout' do stub_request(:get, 'https://graph.facebook.com/me'). to_return(:body => '{}') mock.proxy(Timeout).timeout(numeric) RestGraph.new.get('me').should == {} end should 'override timeout' do mock(Timeout).timeout(99){ true } RestGraph.new(:timeout => 1).get('me', {}, :timeout => 99).should == true end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
rest-graph-2.0.3 | test/test_timeout.rb |
rest-graph-2.0.2 | test/test_timeout.rb |
rest-graph-2.0.1 | test/test_timeout.rb |
rest-graph-2.0.0 | test/test_timeout.rb |