Sha256: 15ad8f636e1aa66c9216aae08dae652608c61582b5bafa53fc74b8844d77d86c

Contents?: true

Size: 505 Bytes

Versions: 2

Compression:

Stored size: 505 Bytes

Contents

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

2 entries across 2 versions & 1 rubygems

Version Path
ddtrace-1.10.1 lib/datadog/ci/contrib/rspec/patcher.rb
ddtrace-1.10.0 lib/datadog/ci/contrib/rspec/patcher.rb