1
0
Fork 0
mirror of https://github.com/mperham/sidekiq.git synced 2022-11-09 13:52:34 -05:00
mperham--sidekiq/test/test_util.rb

18 lines
362 B
Ruby

require 'helper'
require 'sidekiq/util'
class TestUtil < Sidekiq::Test
describe 'util' do
it 'generates the same process id when included in two or more classes' do
class One
include Sidekiq::Util
end
class Two
include Sidekiq::Util
end
assert_equal One.new.process_id, Two.new.process_id
end
end
end