Skip to content

Commit c5b2960

Browse files
Fix set not being found when running specs on dev rubies
1 parent f9a51e4 commit c5b2960

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

bundler/spec/runtime/inline_spec.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -451,6 +451,9 @@ def confirm(msg, newline = nil)
451451

452452
realworld_system_gems "timeout uri" # this spec uses net/http which requires these default gems
453453

454+
# on prerelease rubies, a required_rubygems_version constraint is added by RubyGems to the resolution, causing Molinillo to load the `set` gem
455+
realworld_system_gems "set --version 1.0.3" if Gem.ruby_version.prerelease?
456+
454457
script <<-RUBY, :dir => tmp("path_without_gemfile"), :env => { "BUNDLER_GEM_DEFAULT_DIR" => system_gem_path.to_s }
455458
require "bundler/inline"
456459

0 commit comments

Comments
 (0)