diff options
author | Kasper Timm Hansen <kaspth@gmail.com> | 2018-08-15 20:16:43 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-15 20:16:43 +0200 |
commit | 977d77e9e250a323f64785042d9ad8412368c19a (patch) | |
tree | 8f0e67b907628ed40fc683e8c4bad473ce8a32df /railties/test/backtrace_cleaner_test.rb | |
parent | efaa7191f24da079e785b00019a9ef252f841a8c (diff) | |
parent | c675783eb4fb42a357ec068d4cfd83bf08f78aea (diff) | |
download | rails-977d77e9e250a323f64785042d9ad8412368c19a.tar.gz rails-977d77e9e250a323f64785042d9ad8412368c19a.tar.bz2 rails-977d77e9e250a323f64785042d9ad8412368c19a.zip |
Merge pull request #33499 from lsylvester/caller-ignore-paths
use BacktraceCleaner for ActiveRecord verbose logging
Diffstat (limited to 'railties/test/backtrace_cleaner_test.rb')
-rw-r--r-- | railties/test/backtrace_cleaner_test.rb | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/railties/test/backtrace_cleaner_test.rb b/railties/test/backtrace_cleaner_test.rb index 8490f9eb10..90e084ddca 100644 --- a/railties/test/backtrace_cleaner_test.rb +++ b/railties/test/backtrace_cleaner_test.rb @@ -8,22 +8,6 @@ class BacktraceCleanerTest < ActiveSupport::TestCase @cleaner = Rails::BacktraceCleaner.new end - test "should format installed gems correctly" do - backtrace = [ "#{Gem.path[0]}/gems/nosuchgem-1.2.3/lib/foo.rb" ] - result = @cleaner.clean(backtrace, :all) - assert_equal "nosuchgem (1.2.3) lib/foo.rb", result[0] - end - - test "should format installed gems not in Gem.default_dir correctly" do - target_dir = Gem.path.detect { |p| p != Gem.default_dir } - # skip this test if default_dir is the only directory on Gem.path - if target_dir - backtrace = [ "#{target_dir}/gems/nosuchgem-1.2.3/lib/foo.rb" ] - result = @cleaner.clean(backtrace, :all) - assert_equal "nosuchgem (1.2.3) lib/foo.rb", result[0] - end - end - test "should consider traces from irb lines as User code" do backtrace = [ "(irb):1", "/Path/to/rails/railties/lib/rails/commands/console.rb:77:in `start'", |