Skip to content

Commit 93b7816

Browse files
committed
use correct variable in BacktraceCleaner test
`@target_dir` variable was changed to local variable in 8e1714b.
1 parent d89238d commit 93b7816

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

railties/test/backtrace_cleaner_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ def setup
1515
test "should format installed gems not in Gem.default_dir correctly" do
1616
target_dir = Gem.path.detect { |p| p != Gem.default_dir }
1717
# skip this test if default_dir is the only directory on Gem.path
18-
if @target_dir
18+
if target_dir
1919
backtrace = [ "#{target_dir}/gems/nosuchgem-1.2.3/lib/foo.rb" ]
2020
result = @cleaner.clean(backtrace, :all)
2121
assert_equal "nosuchgem (1.2.3) lib/foo.rb", result[0]

0 commit comments

Comments
 (0)