Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix a backtrace cleaning related spec.

Signed-off-by: Sam Phippen <samphippen@googlemail.com>
  • Loading branch information...
commit 055d706ba7047ed4697a7dc81d1143e668adc4b6 1 parent 82f05dd
@samphippen samphippen authored
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
Please sign in to comment.
Something went wrong with that request. Please try again.