summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2020-01-18 00:49:19 +0100
committerDavid Rodríguez <deivid.rodriguez@riseup.net>2020-01-18 00:49:19 +0100
commitee5a19fb599ea4e594db7061e6ba76bfd87236d7 (patch)
tree0ceaf897ba5b7411e5e25f19991d788c315b82c8
parent3d4abdd0f69f919476ea5410e9cc90214ce052f4 (diff)
downloadbundler-ee5a19fb599ea4e594db7061e6ba76bfd87236d7.tar.gz
Use copy instead of movingci/fix_flaky
I'm not really sure why, but the rename syscall sometimes is raising Errno::EXDEV under Windows. I figure using a copy will fix the issue, and it stills reproduces the regression the test is meant to check for.
-rw-r--r--spec/runtime/gem_tasks_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/runtime/gem_tasks_spec.rb b/spec/runtime/gem_tasks_spec.rb
index 4fe9d43e73..d219556a4b 100644
--- a/spec/runtime/gem_tasks_spec.rb
+++ b/spec/runtime/gem_tasks_spec.rb
@@ -60,7 +60,7 @@ RSpec.describe "require 'bundler/gem_tasks'" do
context "rake build when path has spaces" do
before do
spaced_bundled_app = tmp.join("bundled app")
- FileUtils.mv bundled_app, spaced_bundled_app
+ FileUtils.cp_r bundled_app, spaced_bundled_app
bundle! "exec rake build", :dir => spaced_bundled_app
end