summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2022-09-06 06:46:21 +0200
committergit <svn-admin@ruby-lang.org>2022-09-06 17:11:47 +0900
commit1f77cc3894d42b6c063ce640b27ae5bb24bc8b55 (patch)
tree47507b6babf47066deb29a5250f20e6c063249f2 /spec
parentc664264c0713861e55c82b2dced9cc37977392ad (diff)
[rubygems/rubygems] Fix `set` not being found when running specs on dev rubies
https://github.com/rubygems/rubygems/commit/c5b2960388
Diffstat (limited to 'spec')
-rw-r--r--spec/bundler/runtime/inline_spec.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/spec/bundler/runtime/inline_spec.rb b/spec/bundler/runtime/inline_spec.rb
index 83f898c4ac..d53e8663a6 100644
--- a/spec/bundler/runtime/inline_spec.rb
+++ b/spec/bundler/runtime/inline_spec.rb
@@ -451,6 +451,9 @@ RSpec.describe "bundler/inline#gemfile" do
realworld_system_gems "timeout uri" # this spec uses net/http which requires these default gems
+ # on prerelease rubies, a required_rubygems_version constraint is added by RubyGems to the resolution, causing Molinillo to load the `set` gem
+ realworld_system_gems "set --version 1.0.3" if Gem.ruby_version.prerelease?
+
script <<-RUBY, :dir => tmp("path_without_gemfile"), :env => { "BUNDLER_GEM_DEFAULT_DIR" => system_gem_path.to_s }
require "bundler/inline"