[前][次][番号順一覧][スレッド一覧]

ruby-changes:72018

From: David <ko1@a...>
Date: Mon, 30 May 2022 17:42:59 +0900 (JST)
Subject: [ruby-changes:72018] 7001e34323 (master): [rubygems/rubygems] Fix failing spec on Windows

https://git.ruby-lang.org/ruby.git/commit/?id=7001e34323

From 7001e34323e37a4cb07ee077bf1efb30e438bed2 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?David=20Rodr=C3=ADguez?= <deivid.rodriguez@r...>
Date: Fri, 27 May 2022 23:06:15 +0200
Subject: [rubygems/rubygems] Fix failing spec on Windows

https://github.com/rubygems/rubygems/commit/8e68c57457
---
 spec/bundler/runtime/setup_spec.rb | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/spec/bundler/runtime/setup_spec.rb b/spec/bundler/runtime/setup_spec.rb
index b5f26f7006..761377323a 100644
--- a/spec/bundler/runtime/setup_spec.rb
+++ b/spec/bundler/runtime/setup_spec.rb
@@ -1,7 +1,6 @@ https://github.com/ruby/ruby/blob/trunk/spec/bundler/runtime/setup_spec.rb#L1
 # frozen_string_literal: true
 
 require "tmpdir"
-require "tempfile"
 
 RSpec.describe "Bundler.setup" do
   describe "with no arguments" do
@@ -835,13 +834,11 @@ end https://github.com/ruby/ruby/blob/trunk/spec/bundler/runtime/setup_spec.rb#L834
 
   context "with bundler is located in symlinked GEM_HOME" do
     let(:gem_home) { Dir.mktmpdir }
-    let(:symlinked_gem_home) { Tempfile.new("gem_home").path }
+    let(:symlinked_gem_home) { tmp("gem_home-symlink").to_s }
     let(:full_name) { "bundler-#{Bundler::VERSION}" }
 
     before do
-      skip "symlink destination exists" if Gem.win_platform?
-
-      FileUtils.ln_sf(gem_home, symlinked_gem_home)
+      FileUtils.ln_s(gem_home, symlinked_gem_home)
       gems_dir = File.join(gem_home, "gems")
       specifications_dir = File.join(gem_home, "specifications")
       Dir.mkdir(gems_dir)
-- 
cgit v1.2.1


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]