Clear gem paths for each test

So that rubygems can find the bundled rake.
This commit is contained in:
Nobuyoshi Nakada 2023-01-14 23:56:07 +09:00
parent 088132fb33
commit 6698b580dd
Notes: git 2023-01-15 14:58:03 +00:00

View File

@ -87,6 +87,8 @@ module Test
$stdout = orig_stdout if orig_stdout
o.close if o && !o.closed?
i.close if i && !i.closed?
Gem.clear_paths if defined?(Gem)
end
def run(args = []) # :nodoc: