# File lib/rr/integrations/rspec_2.rb, line 8 def applies? defined?(::RSpec) && defined?(::RSpec::Core::Version::STRING) && ::RSpec::Core::Version::STRING =~ /^2/ end
# File lib/rr/integrations/rspec_2.rb, line 14 def hook ::RSpec.configure do |config| config.mock_with Mixin config.include RR::Adapters::RRMethods end patterns = ::RSpec.configuration.backtrace_clean_patterns unless patterns.include?(RR::Errors::BACKTRACE_IDENTIFIER) patterns.push(RR::Errors::BACKTRACE_IDENTIFIER) end end
Generated with the Darkfish Rdoc Generator 2.