summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2020-01-04 06:05:25 +0100
committerDavid Rodríguez <deivid.rodriguez@riseup.net>2020-01-05 15:24:48 +0100
commitde48ef67201f3e693ac5e8a3e57297d6615a3566 (patch)
tree84e3eeb546bf759640ffac0a3e5897ae4dd99b44
parent31aba4c6b768b233d34707bb50c059257634cc0b (diff)
downloadbundler-de48ef67201f3e693ac5e8a3e57297d6615a3566.tar.gz
Remove unnecessary `in_app_root_custom` helper
-rw-r--r--spec/commands/install_spec.rb2
-rw-r--r--spec/commands/show_spec.rb2
-rw-r--r--spec/support/helpers.rb4
3 files changed, 2 insertions, 6 deletions
diff --git a/spec/commands/install_spec.rb b/spec/commands/install_spec.rb
index b57d81b10a..3c2ee69f32 100644
--- a/spec/commands/install_spec.rb
+++ b/spec/commands/install_spec.rb
@@ -504,7 +504,7 @@ RSpec.describe "bundle install with gem sources" do
root_dir = tmp("foo[]bar")
FileUtils.mkdir_p(root_dir)
- in_app_root_custom(root_dir)
+ Dir.chdir(root_dir)
end
it "doesn't blow up" do
diff --git a/spec/commands/show_spec.rb b/spec/commands/show_spec.rb
index 823a806f3e..b21892bae2 100644
--- a/spec/commands/show_spec.rb
+++ b/spec/commands/show_spec.rb
@@ -143,7 +143,7 @@ RSpec.describe "bundle show", :bundler => "< 3" do
context "in a fresh gem in a blank git repo" do
before :each do
build_git "foo", :path => lib_path("foo")
- in_app_root_custom lib_path("foo")
+ Dir.chdir lib_path("foo")
File.open("Gemfile", "w") {|f| f.puts "gemspec" }
sys_exec "rm -rf .git && git init"
end
diff --git a/spec/support/helpers.rb b/spec/support/helpers.rb
index 674a31a780..98c914b0a5 100644
--- a/spec/support/helpers.rb
+++ b/spec/support/helpers.rb
@@ -67,10 +67,6 @@ module Spec
Dir.chdir(bundled_app2, &blk)
end
- def in_app_root_custom(root, &blk)
- Dir.chdir(root, &blk)
- end
-
def run(cmd, *args)
opts = args.last.is_a?(Hash) ? args.pop : {}
groups = args.map(&:inspect).join(", ")