Sha256: 52ca223ac3e17a85de3082e3a58d0703ae8a5fa9c5267e02ac38d835b0389d8b

Contents?: true

Size: 441 Bytes

Versions: 4

Compression:

Stored size: 441 Bytes

Contents

require 'ddtrace/contrib/patcher'
require 'ddtrace/contrib/rspec/example'

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

        module_function

        def target_version
          Integration.version
        end

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ddtrace-0.49.0 lib/ddtrace/contrib/rspec/patcher.rb
ddtrace-0.48.0 lib/ddtrace/contrib/rspec/patcher.rb
ddtrace-0.47.0 lib/ddtrace/contrib/rspec/patcher.rb
ddtrace-0.46.0 lib/ddtrace/contrib/rspec/patcher.rb