diff options
author | Matthew Draper <matthew@trebex.net> | 2016-11-26 12:51:06 +1030 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-26 12:51:06 +1030 |
commit | c2f4a200e20e6dca75fe3c0ee276319dae6e37d1 (patch) | |
tree | a5a81f1c8dd54295838213b7b51b97454466a1d7 /railties | |
parent | d89238d767ddfbd3b32f6d5ec7fe5583e409973f (diff) | |
parent | 93b7816eefc2ac4cfe6cd10002598d84bf3df097 (diff) | |
download | rails-c2f4a200e20e6dca75fe3c0ee276319dae6e37d1.tar.gz rails-c2f4a200e20e6dca75fe3c0ee276319dae6e37d1.tar.bz2 rails-c2f4a200e20e6dca75fe3c0ee276319dae6e37d1.zip |
Merge pull request #27179 from y-yagi/follow_up_to_8e1714b
use correct variable in BacktraceCleaner test
Diffstat (limited to 'railties')
-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] |