lib/bogus/rspec.rb in bogus-0.1.2 vs lib/bogus/rspec.rb in bogus-0.1.3

- old
+ new

@@ -3,10 +3,15 @@ RSpec.configure do |config| config.extend Bogus::RSpecExtensions config.include Bogus::MockingDSL config.mock_with Bogus::RSpecAdapter - config.backtrace_exclusion_patterns << Regexp.new("lib/bogus") + + if RSpec::Core::Version::STRING >= "2.14" + config.backtrace_exclusion_patterns << Regexp.new("lib/bogus") + else + config.backtrace_clean_patterns << Regexp.new("lib/bogus") + end config.after(:suite) do Bogus.reset! end end