Sha256: e61752c9f5bd50f5bd7fd614b593f72d37067f1b77f9648769a40079dabbc7d9

Contents?: true

Size: 362 Bytes

Versions: 14

Compression:

Stored size: 362 Bytes

Contents

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

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
sidekiq-2.17.8 test/test_util.rb
sidekiq-2.17.7 test/test_util.rb
sidekiq-2.17.6 test/test_util.rb
sidekiq-2.17.5 test/test_util.rb
sidekiq-2.17.4 test/test_util.rb
sidekiq-2.17.3 test/test_util.rb
sidekiq-2.17.2 test/test_util.rb
sidekiq-2.17.1 test/test_util.rb
sidekiq-2.17.0 test/test_util.rb
sidekiq-2.16.1 test/test_util.rb
sidekiq-2.16.0 test/test_util.rb
sidekiq-2.15.2 test/test_util.rb
sidekiq-2.15.1 test/test_util.rb
sidekiq-2.15.0 test/test_util.rb