diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/minitest/test_mini_test.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/test/minitest/test_mini_test.rb b/test/minitest/test_mini_test.rb index 6c3a2c4b4e..934de53fb0 100644 --- a/test/minitest/test_mini_test.rb +++ b/test/minitest/test_mini_test.rb @@ -28,8 +28,10 @@ class TestMiniTest < MiniTest::Unit::TestCase Object.send :remove_const, :ATestCase if defined? ATestCase end - pwd = Pathname.new(Dir.pwd) - MINITEST_BASE_DIR = Pathname.new(File.expand_path(MiniTest::MINI_DIR)).relative_path_from(pwd) + pwd = Pathname.new(File.expand_path Dir.pwd) + basedir = Pathname.new(File.expand_path(MiniTest::MINI_DIR)) + 'mini' + basedir = basedir.relative_path_from(pwd).to_s + MINITEST_BASE_DIR = basedir[/\A\./] ? basedir : "./#{basedir}" BT_MIDDLE = ["#{MINITEST_BASE_DIR}/test.rb:165:in `run_test_suites'", "#{MINITEST_BASE_DIR}/test.rb:161:in `each'", "#{MINITEST_BASE_DIR}/test.rb:161:in `run_test_suites'", |