Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

11 lines (9 sloc) 0.232 kB
require 'test/unit'
class TestSleep < Test::Unit::TestCase
def test_sleep_5sec
start = Time.now
sleep 5
slept = Time.now-start
assert_in_delta(5.0, slept, 0.1, "[ruby-core:18015]: longer than expected")
end
end
Jump to Line
Something went wrong with that request. Please try again.