Sha256: 1c618865272905218d88ca38b06807dd5b36b65115ae0eecdbc03146b3615cbb
Contents?: true
Size: 495 Bytes
Versions: 3
Compression:
Stored size: 495 Bytes
Contents
require 'rest-core/test' describe RC::Timeout do before do @app = RC::Timeout.new(RC::Dry.new, 0) end after do WebMock.reset! RR.verify end should 'bypass timeout if timeout is 0' do mock(@app).monitor.times(0) @app.call({}){ |e| e.should.eq({}) } end should 'run the monitor to setup timeout' do 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
rest-core-2.1.2 | test/test_timeout.rb |
rest-core-2.1.1 | test/test_timeout.rb |
rest-core-2.1.0 | test/test_timeout.rb |