Skip to content

Commit 5151195

Browse files
committed
Fix a fragile test
`Dir.mktmpdir` concatenates a random base-36 number separated by "-", so may generate pathnames containing "-j4".
1 parent 3ddf695 commit 5151195

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/rubygems/test_gem_commands_install_command.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1610,7 +1610,7 @@ def test_pass_down_the_job_option_to_make
16101610

16111611
gem_make_out = File.read(File.join(gemspec.extension_dir, "gem_make.out"))
16121612
if vc_windows? && nmake_found?
1613-
refute_includes(gem_make_out, "-j4")
1613+
refute_includes(gem_make_out, " -j4")
16141614
else
16151615
assert_includes(gem_make_out, "make -j4")
16161616
end

0 commit comments

Comments
 (0)