aboutsummaryrefslogtreecommitdiffstats
path: root/spec/bundler/cache
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2020-06-03 20:45:36 +0200
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2020-06-18 19:14:15 +0900
commit1436b5026cd1b2ac4b428955aeadaac8e8b12b1b (patch)
tree14f9fa8724d3a96b0b221a39d0e1cbd9cd125197 /spec/bundler/cache
parent481840ff18b2d66b20a42240829e06829c34f8f7 (diff)
downloadruby-1436b5026cd1b2ac4b428955aeadaac8e8b12b1b.tar.gz
[rubygems/rubygems] s/bundle!/bundle
https://github.com/rubygems/rubygems/commit/746a4b3d74
Diffstat (limited to 'spec/bundler/cache')
-rw-r--r--spec/bundler/cache/gems_spec.rb12
-rw-r--r--spec/bundler/cache/git_spec.rb18
-rw-r--r--spec/bundler/cache/platform_spec.rb4
3 files changed, 17 insertions, 17 deletions
diff --git a/spec/bundler/cache/gems_spec.rb b/spec/bundler/cache/gems_spec.rb
index cba07b3077..8d7470836d 100644
--- a/spec/bundler/cache/gems_spec.rb
+++ b/spec/bundler/cache/gems_spec.rb
@@ -8,7 +8,7 @@ RSpec.describe "bundle cache" do
G
system_gems "rack-1.0.0", :path => path
- bundle! :cache
+ bundle :cache
end
it "copies the .gem file to vendor/cache" do
@@ -56,7 +56,7 @@ RSpec.describe "bundle cache" do
s.write "lib/rack.rb", "RACK = 'FAIL'"
end
- bundle! :install, :local => true
+ bundle :install, :local => true
expect(the_bundle).to include_gems("rack 1.0.0")
end
@@ -74,13 +74,13 @@ RSpec.describe "bundle cache" do
end
context "using system gems" do
- before { bundle! "config set path.system true" }
+ before { bundle "config set path.system true" }
let(:path) { system_gem_path }
it_behaves_like "when there are only gemsources"
end
context "installing into a local path" do
- before { bundle! "config set path ./.bundle" }
+ before { bundle "config set path ./.bundle" }
let(:path) { local_gem_path }
it_behaves_like "when there are only gemsources"
end
@@ -99,7 +99,7 @@ RSpec.describe "bundle cache" do
end
it "uses builtin gems when installing to system gems" do
- bundle! "config set path.system true"
+ bundle "config set path.system true"
install_gemfile %(gem 'builtin_gem', '1.0.2')
expect(the_bundle).to include_gems("builtin_gem 1.0.2")
end
@@ -131,7 +131,7 @@ RSpec.describe "bundle cache" do
end
it "errors if the builtin gem isn't available to cache" do
- bundle! "config set path.system true"
+ bundle "config set path.system true"
install_gemfile <<-G
gem 'builtin_gem', '1.0.2'
diff --git a/spec/bundler/cache/git_spec.rb b/spec/bundler/cache/git_spec.rb
index e29f16f012..b015ed8909 100644
--- a/spec/bundler/cache/git_spec.rb
+++ b/spec/bundler/cache/git_spec.rb
@@ -59,8 +59,8 @@ RSpec.describe "bundle cache with git" do
G
bundle "config set cache_all true"
- bundle! :cache
- bundle! :cache
+ bundle :cache
+ bundle :cache
expect(out).to include "Updating files in vendor/cache"
FileUtils.rm_rf lib_path("foo-1.0")
@@ -85,9 +85,9 @@ RSpec.describe "bundle cache with git" do
ref = git.ref_for("master", 11)
expect(ref).not_to eq(old_ref)
- bundle! "update", :all => true
+ bundle "update", :all => true
bundle "config set cache_all true"
- bundle! :cache
+ bundle :cache
expect(bundled_app("vendor/cache/foo-1.0-#{ref}")).to exist
expect(bundled_app("vendor/cache/foo-1.0-#{old_ref}")).not_to exist
@@ -106,7 +106,7 @@ RSpec.describe "bundle cache with git" do
G
bundle "config set cache_all true"
- bundle! :cache
+ bundle :cache
update_git "foo" do |s|
s.write "lib/foo.rb", "puts :CACHE"
@@ -225,13 +225,13 @@ RSpec.describe "bundle cache with git" do
gemfile <<-G
gem "foo", :git => '#{lib_path("foo-1.0")}'
G
- bundle! "config set cache_all true"
- bundle! :cache, "all-platforms" => true, :install => false, :path => "./vendor/cache"
+ bundle "config set cache_all true"
+ bundle :cache, "all-platforms" => true, :install => false, :path => "./vendor/cache"
simulate_new_machine
with_path_as "" do
- bundle! "config set deployment true"
- bundle! :install, :local => true
+ bundle "config set deployment true"
+ bundle :install, :local => true
expect(the_bundle).to include_gem "foo 1.0"
end
end
diff --git a/spec/bundler/cache/platform_spec.rb b/spec/bundler/cache/platform_spec.rb
index b65bb06ae6..128278956c 100644
--- a/spec/bundler/cache/platform_spec.rb
+++ b/spec/bundler/cache/platform_spec.rb
@@ -34,14 +34,14 @@ RSpec.describe "bundle cache with multiple platforms" do
end
it "ensures that a successful bundle install does not delete gems for other platforms" do
- bundle! "install"
+ bundle "install"
expect(bundled_app("vendor/cache/rack-1.0.0.gem")).to exist
expect(bundled_app("vendor/cache/activesupport-2.3.5.gem")).to exist
end
it "ensures that a successful bundle update does not delete gems for other platforms" do
- bundle! "update", :all => true
+ bundle "update", :all => true
expect(bundled_app("vendor/cache/rack-1.0.0.gem")).to exist
expect(bundled_app("vendor/cache/activesupport-2.3.5.gem")).to exist