diff options
author | David Rodriguez <deivid.rodriguez@riseup.net> | 2021-10-18 11:26:04 +0200 |
---|---|---|
committer | git <svn-admin@ruby-lang.org> | 2024-06-06 18:44:38 +0000 |
commit | 30d028eab611470a8731e909d502bcfa85f43e92 (patch) | |
tree | a91be3c909a4b090e3fa8a6d0e0a0119ef68f563 | |
parent | f5c6a395a529c81f2baa7f40a0eaa6a999b7c0cb (diff) |
[rubygems/rubygems] The `bundled_app` helper method already joins internally
https://github.com/rubygems/rubygems/commit/57576e27a1
-rw-r--r-- | spec/bundler/bundler/bundler_spec.rb | 4 | ||||
-rw-r--r-- | spec/bundler/bundler/env_spec.rb | 2 | ||||
-rw-r--r-- | spec/bundler/bundler/plugin_spec.rb | 2 | ||||
-rw-r--r-- | spec/bundler/install/gemfile/eval_gemfile_spec.rb | 2 |
4 files changed, 5 insertions, 5 deletions
diff --git a/spec/bundler/bundler/bundler_spec.rb b/spec/bundler/bundler/bundler_spec.rb index 6a2e435e54..4cd21375b5 100644 --- a/spec/bundler/bundler/bundler_spec.rb +++ b/spec/bundler/bundler/bundler_spec.rb @@ -233,8 +233,8 @@ RSpec.describe Bundler do allow(Bundler).to receive(:root).and_return(bundled_app) - Bundler.mkdir_p(bundled_app.join("foo", "bar")) - expect(bundled_app.join("foo", "bar")).to exist + Bundler.mkdir_p(bundled_app("foo", "bar")) + expect(bundled_app("foo", "bar")).to exist end end diff --git a/spec/bundler/bundler/env_spec.rb b/spec/bundler/bundler/env_spec.rb index 7997cb0c40..c15aa9af67 100644 --- a/spec/bundler/bundler/env_spec.rb +++ b/spec/bundler/bundler/env_spec.rb @@ -150,7 +150,7 @@ RSpec.describe Bundler::Env do before do gemfile("source \"#{file_uri_for(gem_repo1)}\"; gemspec") - File.open(bundled_app.join("foo.gemspec"), "wb") do |f| + File.open(bundled_app("foo.gemspec"), "wb") do |f| f.write(gemspec) end diff --git a/spec/bundler/bundler/plugin_spec.rb b/spec/bundler/bundler/plugin_spec.rb index f41b4eff3a..54d9c9c221 100644 --- a/spec/bundler/bundler/plugin_spec.rb +++ b/spec/bundler/bundler/plugin_spec.rb @@ -247,7 +247,7 @@ RSpec.describe Bundler::Plugin do end it "returns plugin dir in app .bundle path" do - expect(subject.root).to eq(bundled_app.join(".bundle/plugin")) + expect(subject.root).to eq(bundled_app(".bundle/plugin")) end end diff --git a/spec/bundler/install/gemfile/eval_gemfile_spec.rb b/spec/bundler/install/gemfile/eval_gemfile_spec.rb index cfa66e5986..7d2f9d46f9 100644 --- a/spec/bundler/install/gemfile/eval_gemfile_spec.rb +++ b/spec/bundler/install/gemfile/eval_gemfile_spec.rb @@ -2,7 +2,7 @@ RSpec.describe "bundle install with gemfile that uses eval_gemfile" do before do - build_lib("gunks", path: bundled_app.join("gems/gunks")) do |s| + build_lib("gunks", path: bundled_app("gems/gunks")) do |s| s.name = "gunks" s.version = "0.0.1" end |