summaryrefslogtreecommitdiff
path: root/spec/bundler
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2022-05-27 23:09:29 +0200
committergit <svn-admin@ruby-lang.org>2022-05-30 17:42:38 +0900
commit0d7d8f3777b4521b2e83d81c0f830941bfba7b9c (patch)
treeefeffba25e51eef5ffd9da43740c01fed8dcbb23 /spec/bundler
parent7001e34323e37a4cb07ee077bf1efb30e438bed2 (diff)
[rubygems/rubygems] No need to use `FileUtils` to create symlinks
https://github.com/rubygems/rubygems/commit/70ff7cee9f
Diffstat (limited to 'spec/bundler')
-rw-r--r--spec/bundler/commands/clean_spec.rb2
-rw-r--r--spec/bundler/runtime/setup_spec.rb4
2 files changed, 3 insertions, 3 deletions
diff --git a/spec/bundler/commands/clean_spec.rb b/spec/bundler/commands/clean_spec.rb
index 576872b0f6..db81c10e9d 100644
--- a/spec/bundler/commands/clean_spec.rb
+++ b/spec/bundler/commands/clean_spec.rb
@@ -208,7 +208,7 @@ RSpec.describe "bundle clean" do
G
FileUtils.mkdir_p(bundled_app("real-path"))
- FileUtils.ln_sf(bundled_app("real-path"), bundled_app("symlink-path"))
+ File.symlink(bundled_app("real-path"), bundled_app("symlink-path"))
bundle "config set path #{bundled_app("symlink-path")}"
bundle "install"
diff --git a/spec/bundler/runtime/setup_spec.rb b/spec/bundler/runtime/setup_spec.rb
index 761377323a..9df7ba87a2 100644
--- a/spec/bundler/runtime/setup_spec.rb
+++ b/spec/bundler/runtime/setup_spec.rb
@@ -838,13 +838,13 @@ end
let(:full_name) { "bundler-#{Bundler::VERSION}" }
before do
- FileUtils.ln_s(gem_home, symlinked_gem_home)
+ File.symlink(gem_home, symlinked_gem_home)
gems_dir = File.join(gem_home, "gems")
specifications_dir = File.join(gem_home, "specifications")
Dir.mkdir(gems_dir)
Dir.mkdir(specifications_dir)
- FileUtils.ln_s(source_root, File.join(gems_dir, full_name))
+ File.symlink(source_root, File.join(gems_dir, full_name))
gemspec_content = File.binread(gemspec).
sub("Bundler::VERSION", %("#{Bundler::VERSION}")).