Sha256: 933dde5a6ed51237c74b94cea08634fe9c9b34b4920cf02df93d857ad40f7182

Contents?: true

Size: 536 Bytes

Versions: 8

Compression:

Stored size: 536 Bytes

Contents

# frozen_string_literal: true

require_relative '../../../tracing/contrib/patcher'
require_relative 'example'

module Datadog
  module CI
    module Contrib
      module RSpec
        # Patcher enables patching of 'rspec' module.
        module Patcher
          include Datadog::Tracing::Contrib::Patcher

          module_function

          def target_version
            Integration.version
          end

          def patch
            ::RSpec::Core::Example.include(Example)
          end
        end
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
ddtrace-1.14.0 lib/datadog/ci/contrib/rspec/patcher.rb
ddtrace-1.13.1 lib/datadog/ci/contrib/rspec/patcher.rb
ddtrace-1.13.0 lib/datadog/ci/contrib/rspec/patcher.rb
ddtrace-1.12.1 lib/datadog/ci/contrib/rspec/patcher.rb
ddtrace-1.12.0 lib/datadog/ci/contrib/rspec/patcher.rb
ddtrace-1.11.1 lib/datadog/ci/contrib/rspec/patcher.rb
ddtrace-1.11.0 lib/datadog/ci/contrib/rspec/patcher.rb
ddtrace-1.11.0.beta1 lib/datadog/ci/contrib/rspec/patcher.rb