mirror of
https://github.com/mperham/sidekiq.git
synced 2022-11-09 13:52:34 -05:00
18 lines
362 B
Ruby
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
|