mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Merge pull request #27179 from y-yagi/follow_up_to_8e1714b
use correct variable in BacktraceCleaner test
This commit is contained in:
commit
c2f4a200e2
1 changed files with 1 additions and 1 deletions
|
@ -15,7 +15,7 @@ class BacktraceCleanerTest < ActiveSupport::TestCase
|
|||
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
|
||||
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]
|
||||
|
|
Loading…
Reference in a new issue