File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed
Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ module SolidErrors
22 # adapted from: https://github.com/honeybadger-io/honeybadger-ruby/blob/master/lib/honeybadger/backtrace.rb
33 class BacktraceLine
44 # Backtrace line regexp (optionally allowing leading X: for windows support).
5- INPUT_FORMAT = %r{^((?:[a-zA-Z]:)?[^:]+):(\d +)(?::in ` ([^']+)')?$}
5+ INPUT_FORMAT = %r{^((?:[a-zA-Z]:)?[^:]+):(\d +)(?::in [`'] ([^']+)')?$}
66 STRING_EMPTY = "" . freeze
77 GEM_ROOT = "[GEM_ROOT]" . freeze
88 PROJECT_ROOT = "[PROJECT_ROOT]" . freeze
Original file line number Diff line number Diff line change 1+ # frozen_string_literal: true
2+
3+ require "test_helper"
4+
5+ class TestSolidErrors < Minitest ::Test
6+ def test_backtrace
7+ backtrace = SolidErrors ::Backtrace . parse ( caller ( 0 ) ) . to_a
8+ assert_equal backtrace [ 0 ] [ :method ] , "TestSolidErrors#test_backtrace"
9+ end
10+ end
You can’t perform that action at this time.
0 commit comments