diff options
author | David RodrÃguez <[email protected]> | 2021-07-25 16:22:28 +0200 |
---|---|---|
committer | Hiroshi SHIBATA <[email protected]> | 2021-08-31 19:06:14 +0900 |
commit | 9e7249da4e954088b5a3701a034e4ecd003cef43 () | |
tree | 39e18c9ce9f159c576ccf0aad1d87a851ba29168 /spec/bundler/commands/clean_spec.rb | |
parent | 579dbe6ecb7e399002faa4efe648b588a40cd775 (diff) |
[rubygems/rubygems] This spec can pass now on ruby 3
TSort was released as a library so we can install it, and also other gems that are loaded by the spec. Also, Ruby on Windows apparently loads fiddle 1.0.6, so we need to also install that to make that not fail. https://.com/rubygems/rubygems/commit/2b8dcab99e
Notes: Merged: https://.com/ruby/ruby/pull/4789
-rw-r--r-- | spec/bundler/commands/clean_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -626,7 +626,7 @@ RSpec.describe "bundle clean" do end it "when using --force, it doesn't remove default gem binaries" do - 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" skip "does not work on rubygems versions where `--install_dir` doesn't respect --default" unless Gem::Installer.for_spec(loaded_gemspec, :install_dir => "/foo").default_spec_file == "/foo/specifications/default/bundler-#{Bundler::VERSION}.gemspec" # Since rubygems 3.2.0.rc.2 @@ -638,7 +638,7 @@ RSpec.describe "bundle clean" do s.executables = "irb" end - realworld_system_gems "fiddle --version 1.0.0" install_gemfile <<-G source "#{file_uri_for(gem_repo2)}" |