diff options
author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2021-12-26 19:44:24 +0100 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2021-12-27 10:45:36 +0900 |
commit | 03903f23c277b4dae8174347f7a5081b3a776a08 (patch) | |
tree | 86a9c20332d61ed3712c15da4fc8fad266412a47 /spec/bundler/support | |
parent | ca3a2e46e8098bc66e2ab1589934bb40f00b78b1 (diff) | |
download | ruby-03903f23c277b4dae8174347f7a5081b3a776a08.tar.gz |
[rubygems/rubygems] Remove the rest of the `RUBY_VERSION` monkeypatching
Since we're at it. This generates a bunch of warnings and seems like a
brittle way to test things, so let's get rid of it.
https://github.com/rubygems/rubygems/commit/f5d45520e0
Diffstat (limited to 'spec/bundler/support')
-rw-r--r-- | spec/bundler/support/helpers.rb | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/spec/bundler/support/helpers.rb b/spec/bundler/support/helpers.rb index 99baec24d4..ef53cc0274 100644 --- a/spec/bundler/support/helpers.rb +++ b/spec/bundler/support/helpers.rb @@ -448,15 +448,6 @@ module Spec ENV["BUNDLER_SPEC_PLATFORM"] = old if block_given? end - def simulate_ruby_version(version) - return if version == RUBY_VERSION - old = ENV["BUNDLER_SPEC_RUBY_VERSION"] - ENV["BUNDLER_SPEC_RUBY_VERSION"] = version - yield if block_given? - ensure - ENV["BUNDLER_SPEC_RUBY_VERSION"] = old if block_given? - end - def simulate_windows(platform = mswin) simulate_platform platform do simulate_bundler_version_when_missing_prerelease_default_gem_activation do |