Skip to content

Commit

Permalink
And more
Browse files Browse the repository at this point in the history
  • Loading branch information
deivid-rodriguez committed Oct 8, 2020
1 parent dc39496 commit 398c1d5
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions bundler/spec/runtime/inline_spec.rb
Expand Up @@ -371,7 +371,7 @@ def confirm(msg, newline = nil)
end

it "when requiring fileutils after does not show redefinition warnings" do
dependency_installer_loads_fileutils = ruby "require 'rubygems/dependency_installer'; puts LOADED_FEATURES.grep(/fileutils/)", :raise_on_error => false
dependency_installer_loads_fileutils = ruby "require 'rubygems/dependency_installer'; puts $LOADED_FEATURES.grep(/fileutils/)", :raise_on_error => false
skip "does not work if rubygems/dependency_installer loads fileutils, which happens until rubygems 3.2.0" unless dependency_installer_loads_fileutils.empty?

skip "does not work on ruby 3.0 because it changes the path to look for default gems, tsort is a default gem there, and we can't install it either like we do with fiddle because it doesn't yet exist" unless RUBY_VERSION < "3.0.0"
Expand All @@ -383,11 +383,6 @@ def confirm(msg, newline = nil)

realworld_system_gems "fileutils --version 1.4.1"

build_repo2 do
# simulate executable for default gem
build_gem "fileutils", default_fileutils_version, :to_system => true, :default => true
end

realworld_system_gems "fiddle" # not sure why, but this is needed on Windows to boot rubygems succesfully

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

0 comments on commit 398c1d5

Please sign in to comment.