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

13 lines
267 B
Ruby
Raw Normal View History

2013-01-31 12:42:19 -05:00
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