class RR::Integrations::RSpec1
Public Instance Methods
applies?()
click to toggle source
# File lib/rr/integrations/rspec_1.rb, line 26 def applies? defined?(::Spec) && defined?(::Spec::VERSION::STRING) && ::Spec::VERSION::STRING =~ /^1/ end
hook()
click to toggle source
# 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()
click to toggle source
# File lib/rr/integrations/rspec_1.rb, line 22 def name 'RSpec 1' end