summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2025-12-20 21:37:45 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2025-12-23 18:53:36 +0900
commit515119541095bcb84cb8d85db644d836eeeeef33 (patch)
tree05cfb62c625e1641c9d3affe91a5f3fb400d3fe2
parent3ddf69500ffd76efd28e45d2e101a85fca0d8a61 (diff)
Fix a fragile test
`Dir.mktmpdir` concatenates a random base-36 number separated by "-", so may generate pathnames containing "-j4".
-rw-r--r--test/rubygems/test_gem_commands_install_command.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/rubygems/test_gem_commands_install_command.rb b/test/rubygems/test_gem_commands_install_command.rb
index 72ca9d8262..d2ca933a63 100644
--- a/test/rubygems/test_gem_commands_install_command.rb
+++ b/test/rubygems/test_gem_commands_install_command.rb
@@ -1610,7 +1610,7 @@ ERROR: Possible alternatives: non_existent_with_hint
gem_make_out = File.read(File.join(gemspec.extension_dir, "gem_make.out"))
if vc_windows? && nmake_found?
- refute_includes(gem_make_out, "-j4")
+ refute_includes(gem_make_out, " -j4")
else
assert_includes(gem_make_out, "make -j4")
end