use correct variable in BacktraceCleaner test
`@target_dir` variable was changed to local variable in 8e1714b
.
This commit is contained in:
parent
d89238d767
commit
93b7816eef
|
@ -15,7 +15,7 @@ class BacktraceCleanerTest < ActiveSupport::TestCase
|
||||||
test "should format installed gems not in Gem.default_dir correctly" do
|
test "should format installed gems not in Gem.default_dir correctly" do
|
||||||
target_dir = Gem.path.detect { |p| p != Gem.default_dir }
|
target_dir = Gem.path.detect { |p| p != Gem.default_dir }
|
||||||
# skip this test if default_dir is the only directory on Gem.path
|
# 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" ]
|
backtrace = [ "#{target_dir}/gems/nosuchgem-1.2.3/lib/foo.rb" ]
|
||||||
result = @cleaner.clean(backtrace, :all)
|
result = @cleaner.clean(backtrace, :all)
|
||||||
assert_equal "nosuchgem (1.2.3) lib/foo.rb", result[0]
|
assert_equal "nosuchgem (1.2.3) lib/foo.rb", result[0]
|
||||||
|
|
Loading…
Reference in New Issue