Sha256: 8290a381db31d7ef6452ed08b230c222619331b31daa9fd4af115652e286be31

Contents?: true

Size: 766 Bytes

Versions: 32

Compression:

Stored size: 766 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 File.expand_path(File.join(File.dirname(__FILE__),'..','..','..','test_helper'))
require 'new_relic/agent/instrumentation/active_job'

module NewRelic::Agent::Instrumentation
  class ActiveJobHelperTest < Minitest::Test
    def test_rails_formatted_adapters_get_shortened
      name = ActiveJobHelper.clean_adapter_name("ActiveJob::QueueAdapters::InlineAdapter")
      assert_equal "ActiveJob::Inline", name
    end

    def test_unexpected_name_format
      name = ActiveJobHelper.clean_adapter_name("Not::AnExpected::Adapter")
      assert_equal "Not::AnExpected::Adapter", name
    end
  end
end

Version data entries

32 entries across 32 versions & 2 rubygems

Version Path
newrelic_rpm-3.13.1.300 test/new_relic/agent/instrumentation/active_job_test.rb
newrelic_rpm-3.13.0.299 test/new_relic/agent/instrumentation/active_job_test.rb
newrelic_rpm-3.12.1.298 test/new_relic/agent/instrumentation/active_job_test.rb
newrelic_rpm-3.12.0.288 test/new_relic/agent/instrumentation/active_job_test.rb
newrelic_rpm-3.11.2.286 test/new_relic/agent/instrumentation/active_job_test.rb
newrelic_rpm-3.11.1.284 test/new_relic/agent/instrumentation/active_job_test.rb
newrelic_rpm-3.11.0.283 test/new_relic/agent/instrumentation/active_job_test.rb
newrelic_rpm-3.10.0.279 test/new_relic/agent/instrumentation/active_job_test.rb
newrelic_rpm-3.9.9.275 test/new_relic/agent/instrumentation/active_job_test.rb
newrelic_rpm-3.9.8.273 test/new_relic/agent/instrumentation/active_job_test.rb
newrelic_rpm-3.9.7.266 test/new_relic/agent/instrumentation/active_job_test.rb
newrelic_rpm-3.9.6.257 test/new_relic/agent/instrumentation/active_job_test.rb