diff options
author | Nicholas Seckar <nseckar@gmail.com> | 2005-10-18 14:06:34 +0000 |
---|---|---|
committer | Nicholas Seckar <nseckar@gmail.com> | 2005-10-18 14:06:34 +0000 |
commit | 60b6fac5deec3317acaca8dc3d399faea25223b2 (patch) | |
tree | 2c9628661e6286baad8f9f81ec81781da1a8c66e /activesupport/test | |
parent | 851dd0806be4e21f9a4fdcc77162711f46095bc5 (diff) | |
download | rails-60b6fac5deec3317acaca8dc3d399faea25223b2.tar.gz rails-60b6fac5deec3317acaca8dc3d399faea25223b2.tar.bz2 rails-60b6fac5deec3317acaca8dc3d399faea25223b2.zip |
Remove generated code from app traces; improve accuracy of framework traces
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2676 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activesupport/test')
-rw-r--r-- | activesupport/test/core_ext/exception_test.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/activesupport/test/core_ext/exception_test.rb b/activesupport/test/core_ext/exception_test.rb index 7f5e64bc9f..58f1ba5540 100644 --- a/activesupport/test/core_ext/exception_test.rb +++ b/activesupport/test/core_ext/exception_test.rb @@ -34,5 +34,13 @@ class ExceptionExtTests < Test::Unit::TestCase assert_kind_of Exception, e assert_equal ['vendor/file.rb some stuff', 'bhal.rb', 'almost all'], e.application_backtrace end + + def test_framework_backtrace_with_before + Exception::TraceSubstitutions << [/\s*hidden.*/, ''] + e = get_exception RuntimeError, 'RAWR', ['vendor/file.rb some stuff', 'bhal.rb', ' vendor/file.rb some stuff', 'almost all'] + assert_kind_of Exception, e + assert_equal ['vendor/file.rb some stuff', ' vendor/file.rb some stuff'], e.framework_backtrace + end + end
\ No newline at end of file |