Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

Revert "Remove add_setting calls in backtrace_cleaner"

This reverts commit ae7fb79.
  • Loading branch information...
commit 6c23e8548a092c97e57ba51abe2498b6d4e5b95e 1 parent d2ee4e5
@samphippen samphippen authored
Showing with 13 additions and 0 deletions.
  1. +13 −0 lib/rspec/core/configuration.rb
13 lib/rspec/core/configuration.rb
@@ -80,6 +80,19 @@ def self.add_setting(name, opts={})
+ # @macro [attach] add_setting
+ # @attribute $1
+ # Patterns to match against lines in backtraces presented in failure
+ # messages in order to filter them out (default:
+ # DEFAULT_BACKTRACE_PATTERNS). You can either replace this list using
+ # the setter or modify it using the getter.
+ #
+ # To override this behavior and display a full backtrace, use
+ # `--backtrace` on the command line, in a `.rspec` file, or in the
+ # `rspec_options` attribute of RSpec's rake task.
+ add_setting :backtrace_exclusion_patterns
+ add_setting :backtrace_inclusion_patterns
# Path to use if no path is provided to the `rspec` command (default:
# `"spec"`). Allows you to just type `rspec` instead of `rspec spec` to
# run all the examples in the `spec` directory.

0 comments on commit 6c23e85

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