This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
commit cb8e610ca2ac2c62da61c0c6178b6d5f16a90036
tree f4e25a19f0624af48a98fbd8bb096af1c253e65b
parent 9111eb99578c55846fcdb1a488fde6a9f9bbeef3
tree f4e25a19f0624af48a98fbd8bb096af1c253e65b
parent 9111eb99578c55846fcdb1a488fde6a9f9bbeef3
| name | age | message | |
|---|---|---|---|
| |
.gitignore | ||
| |
MIT-LICENSE | Thu Jan 01 20:54:55 -0800 2009 | |
| |
README.markdown | ||
| |
Rakefile | ||
| |
lib/ | ||
| |
quietbacktrace.gemspec | ||
| |
test/ |
README.markdown
Quiet Backtrace
Quiet Backtrace suppresses the noise in your Test::Unit backtrace. It also provides hooks for you to add additional silencers and filters.
Install
sudo gem install thoughtbot-quietbacktrace --source=http://gems.github.com
Usage
Silencers remove lines from the backtrace. Create your own:
# Will reject all lines that include the word "mongrel",
# like "/gems/mongrel/server.rb" or "/app/my_mongrel_server/rb"
backtrace_cleaner = QuietBacktrace::BacktraceCleaner.new
backtrace_cleaner.add_silencer { |line| line =~ /mongrel/ }
Filters modify the output of backtrace lines. Create your own:
# Will turn "/my/rails/root/app/models/person.rb" into "/app/models/person.rb"
backtrace_cleaner = QuietBacktrace::BacktraceCleaner.new
backtrace_cleaner.add_filter { |line| line.gsub(Rails.root, '') }
Requirements
- Test::Unit
Resources
Authors
Special thanks to the Boston.rb group for cultivating this idea at our inaugural hackfest.
Copyright (c) Dan Croak, James Golick, Joe Ferris, thoughtbot, inc. (the MIT license)








