Sha256: b4cab364b7ec22304401c0f4b18f150745927c80b8099108e569d709130738a9

Contents?: true

Size: 508 Bytes

Versions: 5

Compression:

Stored size: 508 Bytes

Contents

# typed: true
require 'ddtrace/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::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

5 entries across 5 versions & 1 rubygems

Version Path
ddtrace-0.54.2 lib/datadog/ci/contrib/rspec/patcher.rb
ddtrace-0.54.1 lib/datadog/ci/contrib/rspec/patcher.rb
ddtrace-0.54.0 lib/datadog/ci/contrib/rspec/patcher.rb
ddtrace-0.53.0 lib/datadog/ci/contrib/rspec/patcher.rb
ddtrace-0.52.0 lib/datadog/ci/contrib/rspec/patcher.rb