mirror of
https://github.com/mperham/sidekiq.git
synced 2022-11-09 13:52:34 -05:00
18 lines
353 B
Ruby
18 lines
353 B
Ruby
require_relative 'helper'
|
|
require 'sidekiq'
|
|
require 'sidekiq/web_helpers'
|
|
|
|
class TestUtil < Sidekiq::Test
|
|
|
|
class Helpers
|
|
include Sidekiq::Util
|
|
end
|
|
|
|
def test_hertz_donut
|
|
obj = Helpers.new
|
|
output = capture_logging(Logger::DEBUG) do
|
|
assert_equal false, obj.want_a_hertz_donut?
|
|
end
|
|
assert_includes output, "hz: 10"
|
|
end
|
|
end
|