diff options
author | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2016-11-26 10:55:11 +0900 |
---|---|---|
committer | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2016-11-26 10:55:11 +0900 |
commit | 93b7816eefc2ac4cfe6cd10002598d84bf3df097 (patch) | |
tree | a5a81f1c8dd54295838213b7b51b97454466a1d7 /railties/test | |
parent | d89238d767ddfbd3b32f6d5ec7fe5583e409973f (diff) | |
download | rails-93b7816eefc2ac4cfe6cd10002598d84bf3df097.tar.gz rails-93b7816eefc2ac4cfe6cd10002598d84bf3df097.tar.bz2 rails-93b7816eefc2ac4cfe6cd10002598d84bf3df097.zip |
use correct variable in BacktraceCleaner test
`@target_dir` variable was changed to local variable in 8e1714b.
Diffstat (limited to 'railties/test')
-rw-r--r-- | railties/test/backtrace_cleaner_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/test/backtrace_cleaner_test.rb b/railties/test/backtrace_cleaner_test.rb index 17201d6f77..f71e56f323 100644 --- a/railties/test/backtrace_cleaner_test.rb +++ b/railties/test/backtrace_cleaner_test.rb @@ -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] |