diff options
author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2020-06-03 20:45:36 +0200 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2020-06-18 19:14:15 +0900 |
commit | 1436b5026cd1b2ac4b428955aeadaac8e8b12b1b (patch) | |
tree | 14f9fa8724d3a96b0b221a39d0e1cbd9cd125197 /spec/bundler/install/gems | |
parent | 481840ff18b2d66b20a42240829e06829c34f8f7 (diff) |
[rubygems/rubygems] s/bundle!/bundle
https://github.com/rubygems/rubygems/commit/746a4b3d74
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/3212
Diffstat (limited to 'spec/bundler/install/gems')
-rw-r--r-- | spec/bundler/install/gems/compact_index_spec.rb | 94 | ||||
-rw-r--r-- | spec/bundler/install/gems/dependency_api_spec.rb | 10 | ||||
-rw-r--r-- | spec/bundler/install/gems/native_extensions_spec.rb | 10 | ||||
-rw-r--r-- | spec/bundler/install/gems/standalone_spec.rb | 20 | ||||
-rw-r--r-- | spec/bundler/install/gems/sudo_spec.rb | 6 |
5 files changed, 70 insertions, 70 deletions
diff --git a/spec/bundler/install/gems/compact_index_spec.rb b/spec/bundler/install/gems/compact_index_spec.rb index aa81459924..1391319837 100644 --- a/spec/bundler/install/gems/compact_index_spec.rb +++ b/spec/bundler/install/gems/compact_index_spec.rb @@ -10,7 +10,7 @@ RSpec.describe "compact index api" do gem "rack" G - bundle! :install, :artifice => "compact_index" + bundle :install, :artifice => "compact_index" expect(out).to include("Fetching gem metadata from #{source_uri}") expect(the_bundle).to include_gems "rack 1.0.0" end @@ -31,7 +31,7 @@ RSpec.describe "compact index api" do gem "rails" G - bundle! :install, :artifice => "compact_index" + bundle :install, :artifice => "compact_index" expect(out).to include("Fetching gem metadata from #{source_uri}") expect(the_bundle).to include_gems( "rails 2.3.2", @@ -69,7 +69,7 @@ RSpec.describe "compact index api" do gem "net-sftp" G - bundle! :install, :artifice => "compact_index" + bundle :install, :artifice => "compact_index" expect(the_bundle).to include_gems "net-sftp 1.1.1" end @@ -78,11 +78,11 @@ RSpec.describe "compact index api" do source "#{source_uri}" gem "rack" G - bundle! :install, :artifice => "compact_index" + bundle :install, :artifice => "compact_index" bundle "config --local deployment true" bundle "config --local path vendor/bundle" - bundle! :install, :artifice => "compact_index" + bundle :install, :artifice => "compact_index" expect(out).to include("Fetching gem metadata from #{source_uri}") expect(the_bundle).to include_gems "rack 1.0.0" end @@ -100,7 +100,7 @@ RSpec.describe "compact index api" do end G - bundle! :install, :artifice => "compact_index" + bundle :install, :artifice => "compact_index" expect(the_bundle).to include_gems("rails 2.3.2") end @@ -116,7 +116,7 @@ RSpec.describe "compact index api" do gem 'foo', :git => "#{file_uri_for(lib_path("foo-1.0"))}" G - bundle! :install, :artifice => "compact_index" + bundle :install, :artifice => "compact_index" bundle "config --local deployment true" bundle :install, :artifice => "compact_index" @@ -133,7 +133,7 @@ RSpec.describe "compact index api" do bundle "install", :artifice => "compact_index" bundle "config --local deployment true" - bundle! :install, :artifice => "compact_index" + bundle :install, :artifice => "compact_index" expect(the_bundle).to include_gems("foo 1.0") end @@ -146,7 +146,7 @@ RSpec.describe "compact index api" do gem "rcov" G - bundle! :install, :artifice => "windows" + bundle :install, :artifice => "windows" expect(out).to include("Fetching source index from #{source_uri}") expect(the_bundle).to include_gems "rcov 1.0.0" end @@ -157,7 +157,7 @@ RSpec.describe "compact index api" do gem "rack" G - bundle! :install, :verbose => true, :artifice => "compact_index_forbidden" + bundle :install, :verbose => true, :artifice => "compact_index_forbidden" expect(out).to include("Fetching gem metadata from #{source_uri}") expect(the_bundle).to include_gems "rack 1.0.0" end @@ -168,7 +168,7 @@ RSpec.describe "compact index api" do gem "rack" G - bundle! :install, :verbose => true, :artifice => "compact_index_checksum_mismatch" + bundle :install, :verbose => true, :artifice => "compact_index_checksum_mismatch" expect(out).to include("Fetching gem metadata from #{source_uri}") expect(out).to include <<-'WARN' The checksum of /versions does not match the checksum provided by the server! Something is wrong (local checksum is "\"d41d8cd98f00b204e9800998ecf8427e\"", was expecting "\"123\""). @@ -184,7 +184,7 @@ The checksum of /versions does not match the checksum provided by the server! So gem "rack" G - bundle! :install, :artifice => "compact_index" + bundle :install, :artifice => "compact_index" expect(out).to include("Fetching gem metadata from #{source_uri}") expect(the_bundle).to include_gems "rack 1.0.0" end @@ -195,7 +195,7 @@ The checksum of /versions does not match the checksum provided by the server! So gem "rack" G - bundle! :install, :artifice => "compact_index_host_redirect" + bundle :install, :artifice => "compact_index_host_redirect" expect(the_bundle).to include_gems "rack 1.0.0" end @@ -218,7 +218,7 @@ The checksum of /versions does not match the checksum provided by the server! So H end - bundle! :install, :artifice => "compact_index_host_redirect", :requires => [lib_path("disable_net_http_persistent.rb")] + bundle :install, :artifice => "compact_index_host_redirect", :requires => [lib_path("disable_net_http_persistent.rb")] expect(out).to_not match(/Too many redirects/) expect(the_bundle).to include_gems "rack 1.0.0" end @@ -251,7 +251,7 @@ The checksum of /versions does not match the checksum provided by the server! So gem "rack" G - bundle! "update --full-index", :artifice => "compact_index", :all => true + bundle "update --full-index", :artifice => "compact_index", :all => true expect(out).to include("Fetching source index from #{source_uri}") expect(the_bundle).to include_gems "rack 1.0.0" end @@ -259,7 +259,7 @@ The checksum of /versions does not match the checksum provided by the server! So it "does not double check for gems that are only installed locally" do system_gems %w[rack-1.0.0 thin-1.0 net_a-1.0] - bundle! "config set --local path.system true" + bundle "config set --local path.system true" ENV["BUNDLER_SPEC_ALL_REQUESTS"] = strip_whitespace(<<-EOS).strip #{source_uri}/versions #{source_uri}/info/rack @@ -287,7 +287,7 @@ The checksum of /versions does not match the checksum provided by the server! So gem "back_deps" G - bundle! :install, :artifice => "compact_index_extra" + bundle :install, :artifice => "compact_index_extra" expect(the_bundle).to include_gems "back_deps 1.0", "foo 1.0" end @@ -314,7 +314,7 @@ The checksum of /versions does not match the checksum provided by the server! So source "#{source_uri}" gem "rack", "1.0.0" G - bundle! :install, :artifice => "compact_index_extra_api" + bundle :install, :artifice => "compact_index_extra_api" expect(the_bundle).to include_gems "rack 1.0.0" build_repo4 do @@ -328,7 +328,7 @@ The checksum of /versions does not match the checksum provided by the server! So source "#{source_uri}/extra" gem "rack", "1.2" G - bundle! :install, :artifice => "compact_index_extra_api" + bundle :install, :artifice => "compact_index_extra_api" expect(the_bundle).to include_gems "rack 1.2" end @@ -350,7 +350,7 @@ The checksum of /versions does not match the checksum provided by the server! So gem 'somegem', '1.0.0' G - bundle! :install, :artifice => "compact_index_extra_api" + bundle :install, :artifice => "compact_index_extra_api" expect(the_bundle).to include_gems "somegem 1.0.0" expect(the_bundle).to include_gems "activesupport 1.2.3" @@ -375,7 +375,7 @@ The checksum of /versions does not match the checksum provided by the server! So end G - bundle! :install, :artifice => "compact_index_extra_api" + bundle :install, :artifice => "compact_index_extra_api" expect(the_bundle).to include_gems "somegem 1.0.0" expect(the_bundle).to include_gems "activesupport 1.2.3" @@ -396,7 +396,7 @@ The checksum of /versions does not match the checksum provided by the server! So end G - bundle! :install, :artifice => "compact_index_extra" + bundle :install, :artifice => "compact_index_extra" expect(out).to include("Fetching gem metadata from http://localgemserver.test/") expect(out).to include("Fetching source index from http://localgemserver.test/extra") @@ -453,7 +453,7 @@ The checksum of /versions does not match the checksum provided by the server! So gem 'foo' G - bundle! :install, :artifice => "compact_index_api_missing" + bundle :install, :artifice => "compact_index_api_missing" expect(the_bundle).to include_gems "foo 1.0" end @@ -471,7 +471,7 @@ The checksum of /versions does not match the checksum provided by the server! So gem "back_deps" G - bundle! :install, :artifice => "compact_index_extra" + bundle :install, :artifice => "compact_index_extra" bundle "install --deployment", :artifice => "compact_index_extra" expect(the_bundle).to include_gems "back_deps 1.0" @@ -492,9 +492,9 @@ The checksum of /versions does not match the checksum provided by the server! So end G - bundle! :install, :artifice => "compact_index_extra" + bundle :install, :artifice => "compact_index_extra" bundle "config --local deployment true" - bundle! :install, :artifice => "compact_index_extra" + bundle :install, :artifice => "compact_index_extra" expect(the_bundle).to include_gems "back_deps 1.0" end @@ -505,7 +505,7 @@ The checksum of /versions does not match the checksum provided by the server! So gem "bundler_dep" G - bundle! :install, :artifice => "compact_index" + bundle :install, :artifice => "compact_index" expect(out).to include("Fetching gem metadata from #{source_uri}") end @@ -517,7 +517,7 @@ The checksum of /versions does not match the checksum provided by the server! So source "#{source_uri}" gem "rails" G - bundle! :install, :artifice => "compact_index" + bundle :install, :artifice => "compact_index" expect(the_bundle).to include_gems "rails 2.3.2" end @@ -563,7 +563,7 @@ The checksum of /versions does not match the checksum provided by the server! So gem 'rack-obama' G - bundle! :install, :artifice => "compact_index" + bundle :install, :artifice => "compact_index" expect(out).to include("Post-install message from rack:") end @@ -573,7 +573,7 @@ The checksum of /versions does not match the checksum provided by the server! So gem 'rack_middleware' G - bundle! :install, :artifice => "compact_index" + bundle :install, :artifice => "compact_index" expect(out).to include("Post-install message from rack:") expect(out).to include("Rack's post install message") end @@ -595,7 +595,7 @@ The checksum of /versions does not match the checksum provided by the server! So gem "rack" G - bundle! :install, :artifice => "compact_index_basic_authentication" + bundle :install, :artifice => "compact_index_basic_authentication" expect(out).not_to include("#{user}:#{password}") expect(the_bundle).to include_gems "rack 1.0.0" end @@ -606,7 +606,7 @@ The checksum of /versions does not match the checksum provided by the server! So gem "rack" G - bundle! :install, :artifice => "endopint_marshal_fail_basic_authentication" + bundle :install, :artifice => "endopint_marshal_fail_basic_authentication" expect(out).not_to include("#{user}:#{password}") expect(the_bundle).to include_gems "rack 1.0.0" end @@ -628,7 +628,7 @@ The checksum of /versions does not match the checksum provided by the server! So gem "rack" G - bundle! :install, :artifice => "compact_index_basic_authentication" + bundle :install, :artifice => "compact_index_basic_authentication" expect(err).to include("Warning: the gem 'rack' was found in multiple sources.") expect(err).not_to include("#{user}:#{password}") expect(the_bundle).to include_gems "rack 1.0.0" @@ -640,7 +640,7 @@ The checksum of /versions does not match the checksum provided by the server! So gem "rack" G - bundle! :install, :artifice => "compact_index_creds_diff_host" + bundle :install, :artifice => "compact_index_creds_diff_host" expect(the_bundle).to include_gems "rack 1.0.0" end @@ -655,7 +655,7 @@ The checksum of /versions does not match the checksum provided by the server! So it "reads authentication details by host name from bundle config" do bundle "config set #{source_hostname} #{user}:#{password}" - bundle! :install, :artifice => "compact_index_strict_basic_authentication" + bundle :install, :artifice => "compact_index_strict_basic_authentication" expect(out).to include("Fetching gem metadata from #{source_uri}") expect(the_bundle).to include_gems "rack 1.0.0" @@ -665,7 +665,7 @@ The checksum of /versions does not match the checksum provided by the server! So # The trailing slash is necessary here; Fetcher canonicalizes the URI. bundle "config set #{source_uri}/ #{user}:#{password}" - bundle! :install, :artifice => "compact_index_strict_basic_authentication" + bundle :install, :artifice => "compact_index_strict_basic_authentication" expect(out).to include("Fetching gem metadata from #{source_uri}") expect(the_bundle).to include_gems "rack 1.0.0" @@ -673,7 +673,7 @@ The checksum of /versions does not match the checksum provided by the server! So it "should use the API" do bundle "config set #{source_hostname} #{user}:#{password}" - bundle! :install, :artifice => "compact_index_strict_basic_authentication" + bundle :install, :artifice => "compact_index_strict_basic_authentication" expect(out).to include("Fetching gem metadata from #{source_uri}") expect(the_bundle).to include_gems "rack 1.0.0" end @@ -686,7 +686,7 @@ The checksum of /versions does not match the checksum provided by the server! So bundle "config set #{source_hostname} otheruser:wrong" - bundle! :install, :artifice => "compact_index_strict_basic_authentication" + bundle :install, :artifice => "compact_index_strict_basic_authentication" expect(the_bundle).to include_gems "rack 1.0.0" end @@ -712,7 +712,7 @@ The checksum of /versions does not match the checksum provided by the server! So gem "rack" G - bundle! :install, :artifice => "compact_index_basic_authentication" + bundle :install, :artifice => "compact_index_basic_authentication" expect(the_bundle).to include_gems "rack 1.0.0" end end @@ -774,7 +774,7 @@ The checksum of /versions does not match the checksum provided by the server! So gem 'rack' G - bundle! :install, :artifice => "compact_index_forbidden" + bundle :install, :artifice => "compact_index_forbidden" expect(exitstatus).to eq(0) if exitstatus ensure @@ -792,7 +792,7 @@ The checksum of /versions does not match the checksum provided by the server! So G # Initial install creates the cached versions file - bundle! :install, :artifice => "compact_index" + bundle :install, :artifice => "compact_index" # Update the Gemfile so we can check subsequent install was successful gemfile <<-G @@ -801,7 +801,7 @@ The checksum of /versions does not match the checksum provided by the server! So G # Second install should make only a partial request to /versions - bundle! :install, :artifice => "compact_index_partial_update" + bundle :install, :artifice => "compact_index_partial_update" expect(the_bundle).to include_gems "rack 1.0.0" end @@ -818,7 +818,7 @@ The checksum of /versions does not match the checksum provided by the server! So FileUtils.mkdir_p(File.dirname(versions)) FileUtils.touch(versions) - bundle! :install, :artifice => "compact_index_concurrent_download" + bundle :install, :artifice => "compact_index_concurrent_download" expect(File.read(versions)).to start_with("created_at") expect(the_bundle).to include_gems "rack 1.0.0" @@ -833,7 +833,7 @@ The checksum of /versions does not match the checksum provided by the server! So rake_info_path = File.join(Bundler.rubygems.user_home, ".bundle", "cache", "compact_index", "localgemserver.test.80.dd34752a738ee965a2a4298dc16db6c5", "info", "rack") - bundle! :install, :artifice => "compact_index" + bundle :install, :artifice => "compact_index" expected_rack_info_content = File.read(rake_info_path) @@ -848,7 +848,7 @@ The checksum of /versions does not match the checksum provided by the server! So # The cache files now being longer means the requested range is going to be not satisfiable # Bundler must end up requesting the whole file to fix things up. - bundle! :install, :artifice => "compact_index_range_not_satisfiable" + bundle :install, :artifice => "compact_index_range_not_satisfiable" resulting_rack_info_content = File.read(rake_info_path) @@ -897,7 +897,7 @@ The checksum of /versions does not match the checksum provided by the server! So end it "does not raise when disable_checksum_validation is set" do - bundle! "config set disable_checksum_validation true" + bundle "config set disable_checksum_validation true" install_gemfile! <<-G, :artifice => "compact_index_wrong_gem_checksum" source "#{source_uri}" gem "rack" @@ -937,7 +937,7 @@ Either installing with `--full-index` or running `bundle update rails` should fi end G gem_command! "uninstall activemerchant" - bundle! "update rails", :artifice => "compact_index" + bundle "update rails", :artifice => "compact_index" expect(lockfile.scan(/activemerchant \(/).size).to eq(1) end end diff --git a/spec/bundler/install/gems/dependency_api_spec.rb b/spec/bundler/install/gems/dependency_api_spec.rb index 7fe2bec721..cd02bff3f1 100644 --- a/spec/bundler/install/gems/dependency_api_spec.rb +++ b/spec/bundler/install/gems/dependency_api_spec.rb @@ -62,7 +62,7 @@ RSpec.describe "gemcutter's dependency API" do bundle "config --local deployment true" bundle "config --local path vendor/bundle" - bundle! :install, :artifice => "endpoint" + bundle :install, :artifice => "endpoint" expect(out).to include("Fetching gem metadata from #{source_uri}") expect(the_bundle).to include_gems "rack 1.0.0" end @@ -113,7 +113,7 @@ RSpec.describe "gemcutter's dependency API" do bundle "install", :artifice => "endpoint" bundle "config --local deployment true" - bundle! :install, :artifice => "endpoint" + bundle :install, :artifice => "endpoint" expect(the_bundle).to include_gems("foo 1.0") end @@ -241,7 +241,7 @@ RSpec.describe "gemcutter's dependency API" do gem "rack" G - bundle! "update --full-index", :artifice => "endpoint", :all => true + bundle "update --full-index", :artifice => "endpoint", :all => true expect(out).to include("Fetching source index from #{source_uri}") expect(the_bundle).to include_gems "rack 1.0.0" end @@ -324,7 +324,7 @@ RSpec.describe "gemcutter's dependency API" do gem 'somegem', '1.0.0' G - bundle! :install, :artifice => "endpoint_extra_api" + bundle :install, :artifice => "endpoint_extra_api" expect(the_bundle).to include_gems "somegem 1.0.0" expect(the_bundle).to include_gems "activesupport 1.2.3" @@ -468,7 +468,7 @@ RSpec.describe "gemcutter's dependency API" do bundle :install, :artifice => "endpoint_extra" bundle "config --local deployment true" - bundle! "install", :artifice => "endpoint_extra" + bundle "install", :artifice => "endpoint_extra" expect(the_bundle).to include_gems "back_deps 1.0" end diff --git a/spec/bundler/install/gems/native_extensions_spec.rb b/spec/bundler/install/gems/native_extensions_spec.rb index a057d0d152..8801a3c289 100644 --- a/spec/bundler/install/gems/native_extensions_spec.rb +++ b/spec/bundler/install/gems/native_extensions_spec.rb @@ -38,7 +38,7 @@ RSpec.describe "installing a gem with native extensions", :ruby_repo do G bundle "config set build.c_extension --with-c_extension=hello" - bundle! "install" + bundle "install" expect(out).to include("Installing c_extension 1.0 with native extensions") @@ -75,7 +75,7 @@ RSpec.describe "installing a gem with native extensions", :ruby_repo do C end - bundle! "config set build.c_extension --with-c_extension=hello" + bundle "config set build.c_extension --with-c_extension=hello" install_gemfile! <<-G gem "c_extension", :git => #{lib_path("c_extension-1.0").to_s.dump} @@ -121,8 +121,8 @@ RSpec.describe "installing a gem with native extensions", :ruby_repo do build_git "gems", :path => lib_path("gems"), :gemspec => false end - bundle! "config set build.c_extension_one --with-c_extension_one=one" - bundle! "config set build.c_extension_two --with-c_extension_two=two" + bundle "config set build.c_extension_one --with-c_extension_one=one" + bundle "config set build.c_extension_two --with-c_extension_two=two" # 1st time, require only one gem -- only one of the extensions gets built. install_gemfile! <<-G @@ -168,7 +168,7 @@ RSpec.describe "installing a gem with native extensions", :ruby_repo do C end - bundle! "config set build.c_extension --with-c_extension=hello --with-c_extension_bundle-dir=hola" + bundle "config set build.c_extension --with-c_extension=hello --with-c_extension_bundle-dir=hola" install_gemfile! <<-G gem "c_extension", :git => #{lib_path("c_extension-1.0").to_s.dump} diff --git a/spec/bundler/install/gems/standalone_spec.rb b/spec/bundler/install/gems/standalone_spec.rb index 6d7828a416..4b31a2f976 100644 --- a/spec/bundler/install/gems/standalone_spec.rb +++ b/spec/bundler/install/gems/standalone_spec.rb @@ -56,7 +56,7 @@ RSpec.shared_examples "bundle install --standalone" do gem "rails" G bundle "config --local path #{bundled_app("bundle")}" - bundle! :install, :standalone => true, :dir => cwd + bundle :install, :standalone => true, :dir => cwd end let(:expected_gems) do @@ -127,7 +127,7 @@ RSpec.shared_examples "bundle install --standalone" do gem "devise", :git => "#{lib_path("devise-1.0")}" G bundle "config --local path #{bundled_app("bundle")}" - bundle! :install, :standalone => true, :dir => cwd + bundle :install, :standalone => true, :dir => cwd end let(:expected_gems) do @@ -155,7 +155,7 @@ RSpec.shared_examples "bundle install --standalone" do end G bundle "config --local path #{bundled_app("bundle")}" - bundle! :install, :standalone => true, :dir => cwd + bundle :install, :standalone => true, :dir => cwd end let(:expected_gems) do @@ -169,7 +169,7 @@ RSpec.shared_examples "bundle install --standalone" do it "allows creating a standalone file with limited groups" do bundle "config --local path #{bundled_app("bundle")}" - bundle! :install, :standalone => "default", :dir => cwd + bundle :install, :standalone => "default", :dir => cwd load_error_ruby <<-RUBY, "spec" $:.unshift File.expand_path("bundle") @@ -187,7 +187,7 @@ RSpec.shared_examples "bundle install --standalone" do it "allows `without` configuration to limit the groups used in a standalone" do bundle "config --local path #{bundled_app("bundle")}" bundle "config --local without test" - bundle! :install, :standalone => true, :dir => cwd + bundle :install, :standalone => true, :dir => cwd load_error_ruby <<-RUBY, "spec" $:.unshift File.expand_path("bundle") @@ -204,7 +204,7 @@ RSpec.shared_examples "bundle install --standalone" do it "allows `path` configuration to change the location of the standalone bundle" do bundle "config --local path path/to/bundle" - bundle! "install", :standalone => true, :dir => cwd + bundle "install", :standalone => true, :dir => cwd ruby <<-RUBY $:.unshift File.expand_path("path/to/bundle") @@ -219,9 +219,9 @@ RSpec.shared_examples "bundle install --standalone" do it "allows `without` to limit the groups used in a standalone" do bundle "config --local without test" - bundle! :install, :dir => cwd + bundle :install, :dir => cwd bundle "config --local path #{bundled_app("bundle")}" - bundle! :install, :standalone => true, :dir => cwd + bundle :install, :standalone => true, :dir => cwd load_error_ruby <<-RUBY, "spec" $:.unshift File.expand_path("bundle") @@ -247,7 +247,7 @@ RSpec.shared_examples "bundle install --standalone" do gem "rails" G bundle "config --local path #{bundled_app("bundle")}" - bundle! :install, :standalone => true, :artifice => "endpoint", :dir => cwd + bundle :install, :standalone => true, :artifice => "endpoint", :dir => cwd end let(:expected_gems) do @@ -268,7 +268,7 @@ RSpec.shared_examples "bundle install --standalone" do gem "rails" G bundle "config --local path #{bundled_app("bundle")}" - bundle! :install, :standalone => true, :binstubs => true, :dir => cwd + bundle :install, :standalone => true, :binstubs => true, :dir => cwd end let(:expected_gems) do diff --git a/spec/bundler/install/gems/sudo_spec.rb b/spec/bundler/install/gems/sudo_spec.rb index a70e90552c..ff73b4a1fa 100644 --- a/spec/bundler/install/gems/sudo_spec.rb +++ b/spec/bundler/install/gems/sudo_spec.rb @@ -8,7 +8,7 @@ RSpec.describe "when using sudo", :sudo => true do end before do - bundle! "config set path.system true" + bundle "config set path.system true" subdir.mkpath sudo "chmod u-w #{subdir}" end @@ -32,7 +32,7 @@ RSpec.describe "when using sudo", :sudo => true do describe "and GEM_HOME is owned by root" do before :each do - bundle! "config set path.system true" + bundle "config set path.system true" chown_system_gems_to_root end @@ -141,7 +141,7 @@ RSpec.describe "when using sudo", :sudo => true do describe "and GEM_HOME is not writable" do it "installs" do - bundle! "config set path.system true" + bundle "config set path.system true" gem_home = tmp("sudo_gem_home") sudo "mkdir -p #{gem_home}" sudo "chmod ugo-w #{gem_home}" |