aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test/clean_backtrace_test.rb
diff options
context:
space:
mode:
authorMike Gehard <mike.gehard@gmail.com>2012-06-18 19:23:28 -0600
committerMike Gehard <mike.gehard@livingsocial.com>2012-06-19 11:56:16 -0600
commitdb03f13255bae7312e661c9bed56be4709fd51f8 (patch)
tree7133f8db2874024d4f233bc5e4928d42193deb6d /activesupport/test/clean_backtrace_test.rb
parent1aa052c6889bf5371ec92e5bfc461070d7d99761 (diff)
downloadrails-db03f13255bae7312e661c9bed56be4709fd51f8.tar.gz
rails-db03f13255bae7312e661c9bed56be4709fd51f8.tar.bz2
rails-db03f13255bae7312e661c9bed56be4709fd51f8.zip
Remove extra test case.
Make the test description better reflect what is happening
Diffstat (limited to 'activesupport/test/clean_backtrace_test.rb')
-rw-r--r--activesupport/test/clean_backtrace_test.rb11
1 files changed, 4 insertions, 7 deletions
diff --git a/activesupport/test/clean_backtrace_test.rb b/activesupport/test/clean_backtrace_test.rb
index 32e346bb48..b14950acb3 100644
--- a/activesupport/test/clean_backtrace_test.rb
+++ b/activesupport/test/clean_backtrace_test.rb
@@ -6,8 +6,10 @@ class BacktraceCleanerFilterTest < ActiveSupport::TestCase
@bc.add_filter { |line| line.gsub("/my/prefix", '') }
end
- test "backtrace should not contain prefix when it has been filtered out" do
- assert_equal "/my/class.rb", @bc.clean([ "/my/prefix/my/class.rb" ]).first
+ test "backtrace should filter all lines in a backtrace, removing prefixes" do
+ assert_equal \
+ ["/my/class.rb", "/my/module.rb"],
+ @bc.clean(["/my/prefix/my/class.rb", "/my/prefix/my/module.rb"])
end
test "backtrace cleaner should allow removing filters" do
@@ -19,11 +21,6 @@ class BacktraceCleanerFilterTest < ActiveSupport::TestCase
assert_equal "/my/other_prefix/my/class.rb", @bc.clean([ "/my/other_prefix/my/class.rb" ]).first
end
- test "backtrace should filter all lines in a backtrace" do
- assert_equal \
- ["/my/class.rb", "/my/module.rb"],
- @bc.clean([ "/my/prefix/my/class.rb", "/my/prefix/my/module.rb" ])
- end
end
class BacktraceCleanerSilencerTest < ActiveSupport::TestCase