Skip to content

Instantly share code, notes, and snippets.

@wjbuys
Created November 4, 2010 20:41
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wjbuys/663151 to your computer and use it in GitHub Desktop.
Save wjbuys/663151 to your computer and use it in GitHub Desktop.
Get the latest versions of RSpec2 and RR to play nice
require 'rspec'
require 'rr'
module RR
module Adapters
module Rspec
def self.included(mod)
RSpec.configuration.backtrace_clean_patterns.push(RR::Errors::BACKTRACE_IDENTIFIER)
end
end
end
end
RSpec.configure do |config|
config.mock_framework = :rr
RSpec::Core::ExampleGroup.send(:include, RR::Adapters::Rspec)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment