0
-# Quiet Backtrace suppresses the noise in your Test::Unit backtrace.
0
-# It also provides hooks for you to add additional silencers and filters.
0
-# sudo gem install quietbacktrace
0
-# Quiet Backtrace works by adding new attributes to Test::Unit::TestCase.
0
-# By default, their values are:
0
-# self.quiet_backtrace = true
0
-# self.backtrace_silencers = [:test_unit, :gem_root, :e1]
0
-# self.backtrace_filters = [:method_name]
0
-# Silencers remove lines from the backtrace that return true for given conditions.
0
-# Filters modify the output of backtrace lines.
0
-# Override the defaults by adding your own backtrace_silencers:
0
-# class Test::Unit::TestCase
0
-# self.backtrace_silencers :shoulda do |line|
0
-# line.include? 'vendor/plugins/shoulda'
0
-# Or your own backtrace_filters:
0
-# class Test::Unit::TestCase
0
-# self.backtrace_filters :ruby_path do |line|
0
-# ruby_file_path = '/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8'
0
-# line.slice!(0..(line =~ ruby_file_path)) if (line =~ ruby_file_path)
0
-# Turn Quiet Backtrace off anywhere in your test suite by setting the flag to false:
0
-# Test::Unit::TestCase.quiet_backtrace = false
0
-# == Rails-specific usage
0
-# Install gemsonrails, add it your Rails app, then freeze quietbacktrace:
0
-# * gem install gemsonrails
0
-# * cd rails-app-folder
0
-# * rake gems:freeze GEM=quietbacktrace
0
-# Quiet Backtrace comes with an excellent Rails-specific silencer and filter.
0
-# They must be added (usually in test_helper.rb) because they are not turned on by default:
0
-# class Test::Unit::TestCase
0
-# self.backtrace_silencers << :rails_vendor
0
-# self.backtrace_filters << :rails_root
0
-# Because Quiet Backtrace works by adding attributes onto Test::Unit::TestCase,
0
-# you can add and remove silencers and filters at any level in your test suite,
0
-# down to the individual test.
0
-# * mailing list: http://groups.google.com/group/quiet_backtrace
0
-# * project site: http://rubyforge.org/projects/quietbacktrace
0
-# * Dan Croak (dcroak@thoughtbot.com, http://dancroak.com)
0
-# * James Golick (james@giraffesoft.ca, http://jamesgolick.com)
0
-# * Joe Ferris (jferris@thoughtbot.com)
0
-# Special thanks to the Boston.rb group (http://bostonrb.org)
0
-# for cultivating this idea at our inaugural hackfest.
0
-# * aliasing.rb and attribute_accessors.rb, which are snipped from ActiveSupport and
0
-# are included in the gem. They allow quiet_backtrace.rb to use alias_method_chain,
0
-# cattr_accessor, and mattr_accessor.
0
-# Copyright (c) 2007 Dan Croak, thoughtbot, inc., released under the MIT license
0
-require File.expand_path(File.dirname(__FILE__) + '/attribute_accessors')
0
-require File.expand_path(File.dirname(__FILE__) + '/aliasing')
0
+require 'activesupport'
0
module QuietBacktrace # :nodoc: all
Comments
No one has commented yet.