Sha256: 2372a149a56aa0aafbb4bfdb406456c7777549a632368da8d40aa62810528e59
Contents?: true
Size: 544 Bytes
Versions: 1
Compression:
Stored size: 544 Bytes
Contents
# # Testing rufus-verbs # # jmettraux@gmail.com # # Mon May 26 17:04:25 JST 2008 # require 'rubygems' require 'test/unit' require 'testbase' require 'rufus/verbs' class TimeoutTest < Test::Unit::TestCase include TestBaseMixin include Rufus::Verbs def test_0 error = nil t = Time.now begin get :uri => "http://localhost:7777/lost", :to => 1 rescue Timeout::Error => e error = e end assert_not_nil error assert (Time.now - t < 2) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rufus-verbs-0.10 | test/timeout_test.rb |