Class: RR::Integrations::RSpec1
- Inherits:
-
Object
- Object
- RR::Integrations::RSpec1
- Defined in:
- lib/rr/integrations/rspec_1.rb
Direct Known Subclasses
Defined Under Namespace
Modules: Mixin
Instance Method Summary collapse
Instance Method Details
#applies? ⇒ Boolean
26 27 28 29 30 |
# File 'lib/rr/integrations/rspec_1.rb', line 26 def applies? defined?(::Spec) && defined?(::Spec::VERSION::STRING) && ::Spec::VERSION::STRING =~ /^1/ end |
#hook ⇒ Object
32 33 34 35 36 37 38 39 40 41 |
# File 'lib/rr/integrations/rspec_1.rb', line 32 def hook ::Spec::Runner.configure do |config| config.mock_with Mixin config.include RR::Adapters::RRMethods end patterns = ::Spec::Runner::QuietBacktraceTweaker::IGNORE_PATTERNS unless patterns.include?(RR::Errors::BACKTRACE_IDENTIFIER) patterns.push(RR::Errors::BACKTRACE_IDENTIFIER) end end |
#name ⇒ Object
22 23 24 |
# File 'lib/rr/integrations/rspec_1.rb', line 22 def name 'RSpec 1' end |