Created
November 4, 2010 20:41
-
-
Save wjbuys/663151 to your computer and use it in GitHub Desktop.
Get the latest versions of RSpec2 and RR to play nice
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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