summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2020-01-04 06:15:17 +0100
committerDavid Rodríguez <deivid.rodriguez@riseup.net>2020-01-05 15:24:49 +0100
commit53398313d8c34287e04a6f02c83fe40f1a1687bb (patch)
tree2ca00f827528664618273f6c95d66cb5a21d70aa
parent18cde3b606ecc88a47a2a856de79db8482b5fb25 (diff)
downloadbundler-53398313d8c34287e04a6f02c83fe40f1a1687bb.tar.gz
Don't rename folders while being inside
Since Windows doesn't like that.
-rw-r--r--spec/install/gemfile/git_spec.rb4
-rw-r--r--spec/install/gems/standalone_spec.rb1
-rw-r--r--spec/runtime/gem_tasks_spec.rb1
3 files changed, 6 insertions, 0 deletions
diff --git a/spec/install/gemfile/git_spec.rb b/spec/install/gemfile/git_spec.rb
index 00f8e96625..1ef00116e7 100644
--- a/spec/install/gemfile/git_spec.rb
+++ b/spec/install/gemfile/git_spec.rb
@@ -129,6 +129,8 @@ RSpec.describe "bundle install with git sources" do
it "still works after moving the application directory" do
bundle "install --path vendor/bundle"
+
+ Dir.chdir root
FileUtils.mv bundled_app, tmp("bundled_app.bck")
Dir.chdir tmp("bundled_app.bck")
@@ -137,6 +139,8 @@ RSpec.describe "bundle install with git sources" do
it "can still install after moving the application directory" do
bundle "install --path vendor/bundle"
+
+ Dir.chdir root
FileUtils.mv bundled_app, tmp("bundled_app.bck")
update_git "foo", "1.1", :path => lib_path("foo-1.0")
diff --git a/spec/install/gems/standalone_spec.rb b/spec/install/gems/standalone_spec.rb
index dcf0698b9e..bc0246b946 100644
--- a/spec/install/gems/standalone_spec.rb
+++ b/spec/install/gems/standalone_spec.rb
@@ -29,6 +29,7 @@ RSpec.shared_examples "bundle install --standalone" do
end
it "works on a different system" do
+ Dir.chdir root
FileUtils.mv(bundled_app, "#{bundled_app}2")
testrb = String.new <<-RUBY
diff --git a/spec/runtime/gem_tasks_spec.rb b/spec/runtime/gem_tasks_spec.rb
index 74270a2316..f85f364865 100644
--- a/spec/runtime/gem_tasks_spec.rb
+++ b/spec/runtime/gem_tasks_spec.rb
@@ -59,6 +59,7 @@ RSpec.describe "require 'bundler/gem_tasks'" do
context "rake build when path has spaces" do
before do
+ Dir.chdir(root)
spaced_bundled_app = tmp.join("bundled app")
FileUtils.mv bundled_app, spaced_bundled_app
Dir.chdir(spaced_bundled_app)