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-04 22:17:52 +0100
commit234041f0bf1c51ed0436602a33f6921396e9612d (patch)
tree5f45a8905a1cd4220a89dc38c2b6444d929a1cc7
parentc0b7ad4d4f03d43d6a9032561158e77c2486a653 (diff)
downloadbundler-234041f0bf1c51ed0436602a33f6921396e9612d.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..6fa8754aab 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"
+
+ in_repo_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"
+
+ in_repo_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..bd474db7fc 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
+ in_repo_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..1311312d7f 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
+ in_repo_root
spaced_bundled_app = tmp.join("bundled app")
FileUtils.mv bundled_app, spaced_bundled_app
Dir.chdir(spaced_bundled_app)