Sha256: 996509eadbb9ded90b749fc34230c0176cb1520b28b571277efb83e33f143312

Contents?: true

Size: 494 Bytes

Versions: 3

Compression:

Stored size: 494 Bytes

Contents

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

3 entries across 3 versions & 1 rubygems

Version Path
ddtrace-0.51.1 lib/datadog/ci/contrib/rspec/patcher.rb
ddtrace-0.51.0 lib/datadog/ci/contrib/rspec/patcher.rb
ddtrace-0.50.0 lib/datadog/ci/contrib/rspec/patcher.rb