Sha256: 62a6374b572324b7b72bebf2f889d368eaf1a7a8f949e19f37059a9f441e3be7
Contents?: true
Size: 528 Bytes
Versions: 5
Compression:
Stored size: 528 Bytes
Contents
require 'rest-core/test' describe RC::Timeout do after do WebMock.reset! RR.verify end def setup_app RC::Timeout.new(RC::Dry.new, 0) end should 'bypass timeout if timeout is 0' do app = setup_app mock(app).monitor.times(0) app.call({}){ |e| e.should.eq({}) } end should 'run the monitor to setup timeout' do app = setup_app env = {'timeout' => 2} mock.proxy(app).monitor(env).times(1) app.call(env){|e| e[RC::TIMER].should.kind_of?(RC::Timeout::TimerThread)} end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
rest-core-2.0.4 | test/test_timeout.rb |
rest-core-2.0.3 | test/test_timeout.rb |
rest-core-2.0.2 | test/test_timeout.rb |
rest-core-2.0.1 | test/test_timeout.rb |
rest-core-2.0.0 | test/test_timeout.rb |