Skip to content
Browse files

Merge pull request #228 from samphippen/fix-specs-for-backtrace-cleaner

Fix a backtrace cleaning related spec.
  • Loading branch information...
2 parents f12680c + 055d706 commit 453999ecc052263c46a69e372d49618eeeebeb2c @myronmarston myronmarston committed Mar 27, 2013
Showing with 6 additions and 1 deletion.
  1. +6 −1 spec/rspec/matchers/configuration_spec.rb
View
7 spec/rspec/matchers/configuration_spec.rb
@@ -22,7 +22,12 @@ module Matchers
end
before do
- RSpec.configuration.stub(:backtrace_clean_patterns) { [/clean-me/] }
+ @old_patterns = RSpec.configuration.backtrace_exclusion_patterns
+ RSpec.configuration.backtrace_exclusion_patterns = [/clean-me/]
+ end
+
+ after do
+ RSpec.configuration.backtrace_exclusion_patterns = @old_patterns
end
it "defaults to rspec-core's backtrace formatter when rspec-core is loaded" do

0 comments on commit 453999e

Please sign in to comment.
Something went wrong with that request. Please try again.