mirror of
https://github.com/mperham/sidekiq.git
synced 2022-11-09 13:52:34 -05:00
19 lines
363 B
Ruby
19 lines
363 B
Ruby
|
require 'helper'
|
||
|
require 'sidekiq/util'
|
||
|
|
||
|
class TestUtil < Minitest::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, One.new.process_id
|
||
|
end
|
||
|
end
|
||
|
end
|