Sha256: cfc4980439c10ee9facd5a3a5ca02e1c132b5ccb20eab209a68c6ef43861c74d

Contents?: true

Size: 605 Bytes

Versions: 6

Compression:

Stored size: 605 Bytes

Contents

# frozen_string_literal: true

require_relative "../patcher"

require_relative "example"
require_relative "example_group"
require_relative "runner"

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

          module_function

          def patch
            ::RSpec::Core::Runner.include(Runner)
            ::RSpec::Core::Example.include(Example)
            ::RSpec::Core::ExampleGroup.include(ExampleGroup)
          end
        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
datadog-ci-1.14.0 lib/datadog/ci/contrib/rspec/patcher.rb
datadog-ci-1.13.0 lib/datadog/ci/contrib/rspec/patcher.rb
datadog-ci-1.12.0 lib/datadog/ci/contrib/rspec/patcher.rb
datadog-ci-1.11.0 lib/datadog/ci/contrib/rspec/patcher.rb
datadog-ci-1.10.0 lib/datadog/ci/contrib/rspec/patcher.rb
datadog-ci-1.9.0 lib/datadog/ci/contrib/rspec/patcher.rb