Sha256: 7471d2f183993058f76799d22f58c5dfbb4874dfa53381a7bfbeee0e1099b4cb
Contents?: true
Size: 501 Bytes
Versions: 1
Compression:
Stored size: 501 Bytes
Contents
require_relative "helper" class TestLibrary < Minitest::Test def test_that_it_has_a_version_number refute_nil ::Zhong::VERSION end def teardown Zhong.stop sleep 1 end def test_heartbeats Zhong.schedule { nil } t = Thread.new { Zhong.start } sleep(1) assert_equal true, Zhong.any_running? assert_in_delta Zhong.redis_time.to_f, Time.now.to_f, 0.1 assert_in_delta Zhong.redis_time.to_f, Zhong.latest_heartbeat.to_f, 1 Zhong.stop t.join end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
zhong-0.1.6 | test/test_library.rb |