[rubygems/rubygems] Only activate bundler when needed
Loading Bundler beforehand was actually replacing ENV with a backup of the pre-Bundler environment through Bundler::EnvironmentPreserver. I think that was making a bug in ENV.replace not bite our tests, because Bundler includes proper patches to workaround that issue. So this commit also includes these patches in RubyGems tests.
[rubygems/rubygems] Only activate bundler when needed
Loading Bundler beforehand was actually replacing ENV with a backup of
the pre-Bundler environment through
Bundler::EnvironmentPreserver. Ithink that was making a bug in
ENV.replacenot bite our tests, becauseBundler includes proper patches to workaround that issue. So this commit
also includes these patches in RubyGems tests.
https://github.com/rubygems/rubygems/commit/8e079149b9