Skip to content

Instantly share code, notes, and snippets.

@pacoguzman
Forked from fletcherm/gist:757775
Created January 2, 2011 20:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pacoguzman/762794 to your computer and use it in GitHub Desktop.
Save pacoguzman/762794 to your computer and use it in GitHub Desktop.
RSpec backtrace clean pattern
RSpec.configure do |config|
# RSpec automatically cleans stuff out of backtraces;
# sometimes this is annoying when trying to debug something e.g. a gem
config.backtrace_clean_patterns = [
/\/lib\d*\/ruby\//,
/bin\//,
/gems/,
/spec\/spec_helper\.rb/,
/lib\/rspec\/(core|expectations|matchers|mocks)/
]
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment