Module: Datadog::CI::Contrib::RSpec::Patcher
- Includes:
- Tracing::Contrib::Patcher
- Defined in:
- lib/datadog/ci/contrib/rspec/patcher.rb
Overview
Patcher enables patching of ‘rspec’ module.
Class Method Summary collapse
Class Method Details
.ci_queue? ⇒ Boolean
33 34 35 36 |
# File 'lib/datadog/ci/contrib/rspec/patcher.rb', line 33 def ci_queue? # ::RSpec::Queue::Runner is a ci-queue runner defined?(::RSpec::Queue::Runner) end |
.patch ⇒ Object
23 24 25 26 27 28 29 30 31 |
# File 'lib/datadog/ci/contrib/rspec/patcher.rb', line 23 def patch if ci_queue? ::RSpec::Queue::Runner.include(Runner) end ::RSpec::Core::Runner.include(Runner) ::RSpec::Core::Example.include(Example) ::RSpec::Core::ExampleGroup.include(ExampleGroup) end |
.target_version ⇒ Object
19 20 21 |
# File 'lib/datadog/ci/contrib/rspec/patcher.rb', line 19 def target_version Integration.version end |