Sha256: b011beb0bf848c41ce8627d1ad46200ba7ed13888030811f387e307a5aa6ff2f

Contents?: true

Size: 526 Bytes

Versions: 4

Compression:

Stored size: 526 Bytes

Contents

# typed: true

require 'datadog/tracing/contrib/patcher'
require 'datadog/ci/contrib/rspec/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

4 entries across 4 versions & 1 rubygems

Version Path
ddtrace-1.2.0 lib/datadog/ci/contrib/rspec/patcher.rb
ddtrace-1.1.0 lib/datadog/ci/contrib/rspec/patcher.rb
ddtrace-1.0.0 lib/datadog/ci/contrib/rspec/patcher.rb
ddtrace-1.0.0.beta2 lib/datadog/ci/contrib/rspec/patcher.rb