Skip to content

Commit 8de2622

Browse files
committed
Fix a fragile test
`Dir.mktmpdir` concatenates a random base-36 number separated by "-", so may generate pathnames containing "-j2".
1 parent f00abcf commit 8de2622

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/rubygems/test_gem_commands_update_command.rb

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

723723
gem_make_out = File.read(File.join(gemspec.extension_dir, "gem_make.out"))
724724
if vc_windows? && nmake_found?
725-
refute_includes(gem_make_out, "-j2")
725+
refute_includes(gem_make_out, " -j2")
726726
else
727727
assert_includes(gem_make_out, "make -j2")
728728
end

0 commit comments

Comments
 (0)