mirror of
https://github.com/ruby/ruby.git
synced 2025-08-26 14:34:39 +02:00
parent
0a974e4700
commit
7001e34323
1 changed files with 2 additions and 5 deletions
|
@ -1,7 +1,6 @@
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
require "tmpdir"
|
require "tmpdir"
|
||||||
require "tempfile"
|
|
||||||
|
|
||||||
RSpec.describe "Bundler.setup" do
|
RSpec.describe "Bundler.setup" do
|
||||||
describe "with no arguments" do
|
describe "with no arguments" do
|
||||||
|
@ -835,13 +834,11 @@ end
|
||||||
|
|
||||||
context "with bundler is located in symlinked GEM_HOME" do
|
context "with bundler is located in symlinked GEM_HOME" do
|
||||||
let(:gem_home) { Dir.mktmpdir }
|
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}" }
|
let(:full_name) { "bundler-#{Bundler::VERSION}" }
|
||||||
|
|
||||||
before do
|
before do
|
||||||
skip "symlink destination exists" if Gem.win_platform?
|
FileUtils.ln_s(gem_home, symlinked_gem_home)
|
||||||
|
|
||||||
FileUtils.ln_sf(gem_home, symlinked_gem_home)
|
|
||||||
gems_dir = File.join(gem_home, "gems")
|
gems_dir = File.join(gem_home, "gems")
|
||||||
specifications_dir = File.join(gem_home, "specifications")
|
specifications_dir = File.join(gem_home, "specifications")
|
||||||
Dir.mkdir(gems_dir)
|
Dir.mkdir(gems_dir)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue