Sha256: f530570130080510636629d892d00e4e122e3f53ebffd71122f265031a8cf33e

Contents?: true

Size: 366 Bytes

Versions: 8

Compression:

Stored size: 366 Bytes

Contents

# frozen_string_literal: true

module SidekiqUniqueJobs
  class Config < OpenStruct
    def inline_testing_enabled?
      testing_enabled? && Sidekiq::Testing.inline?
    end

    def mocking?
      redis_test_mode.to_sym == :mock
    end

    def testing_enabled?
      Sidekiq.const_defined?(TESTING_CONSTANT, false) && Sidekiq::Testing.enabled?
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
sidekiq-unique-jobs-5.0.11 lib/sidekiq_unique_jobs/config.rb
sidekiq-unique-jobs-5.0.10 lib/sidekiq_unique_jobs/config.rb
sidekiq-unique-jobs-5.0.9 lib/sidekiq_unique_jobs/config.rb
sidekiq-unique-jobs-5.0.8 lib/sidekiq_unique_jobs/config.rb
sidekiq-unique-jobs-5.0.7 lib/sidekiq_unique_jobs/config.rb
sidekiq-unique-jobs-5.0.6 lib/sidekiq_unique_jobs/config.rb
sidekiq-unique-jobs-5.0.5 lib/sidekiq_unique_jobs/config.rb
sidekiq-unique-jobs-5.0.4 lib/sidekiq_unique_jobs/config.rb