summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2021-11-27 18:57:29 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2023-08-12 11:19:10 +0900
commit2373feade50c5d32dad253ad0651a6a8c7c2a8ac (patch)
tree4ad6123893f8f70173c55d31930c15468a77edb7 /spec
parentb377793b6e445ab007e14b51e38260e8613ce843 (diff)
For parallel test
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/8210
Diffstat (limited to 'spec')
-rw-r--r--spec/default.mspec3
1 files changed, 2 insertions, 1 deletions
diff --git a/spec/default.mspec b/spec/default.mspec
index f97bcc690e..4cdd631675 100644
--- a/spec/default.mspec
+++ b/spec/default.mspec
@@ -105,7 +105,8 @@ class DottedFormatter
end
def load(*)
- print "#{MSpec.file.delete_prefix(BASE)}: "
+ file = MSpec.file || MSpec.files_array.first
+ print "#{file.delete_prefix(BASE)}: "
@loaded = true
end