Sha256: 22681c19647f2a71ab17543080bc18eee4a984afd971454bf7e9c100932f7602

Contents?: true

Size: 646 Bytes

Versions: 27

Compression:

Stored size: 646 Bytes

Contents

# encoding: utf-8
# This file is distributed under New Relic's license terms.
# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details.

require 'new_relic/delayed_job_injection'

if !NewRelic::Agent::Samplers::DelayedJobSampler.supported_backend?
  class UnsupportedBackendTest < Minitest::Test
    include MultiverseHelpers

    setup_and_teardown_agent do
      NewRelic::DelayedJobInjection.worker_name = "delayed"
    end

    def test_unsupported_raises_on_instantiation
      assert_raises(NewRelic::Agent::Sampler::Unsupported) do
        NewRelic::Agent::Samplers::DelayedJobSampler.new
      end
    end
  end
end

Version data entries

27 entries across 27 versions & 2 rubygems

Version Path
newrelic_rpm-3.13.1.300 test/multiverse/suites/delayed_job/unsupported_backend_test.rb
newrelic_rpm-3.13.0.299 test/multiverse/suites/delayed_job/unsupported_backend_test.rb
newrelic_rpm-3.12.1.298 test/multiverse/suites/delayed_job/unsupported_backend_test.rb
newrelic_rpm-3.12.0.288 test/multiverse/suites/delayed_job/unsupported_backend_test.rb
newrelic_rpm-3.11.2.286 test/multiverse/suites/delayed_job/unsupported_backend_test.rb
newrelic_rpm-3.11.1.284 test/multiverse/suites/delayed_job/unsupported_backend_test.rb
newrelic_rpm-3.11.0.283 test/multiverse/suites/delayed_job/unsupported_backend_test.rb