1
0
Fork 0
mirror of https://github.com/endofunky/sidetiq.git synced 2022-11-09 13:53:30 -05:00
endofunky--sidetiq/test/test_clock.rb
2013-01-31 17:42:19 +00:00

12 lines
267 B
Ruby

require_relative 'helper'
class TestClock < MiniTest::Unit::TestCase
def test_gettime_seconds
assert_equal Sidetiq::Clock.instance.gettime.tv_sec, Time.now.tv_sec
end
def test_gettime_nsec
refute_nil Sidetiq::Clock.instance.gettime.tv_nsec
end
end