2018-11-02 19:07:56 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2019-11-11 03:57:45 -05:00
|
|
|
RSpec.describe "bundle cache" do
|
2021-02-01 10:17:16 -05:00
|
|
|
it "doesn't update the cache multiple times, even if it already exists" do
|
|
|
|
gemfile <<-G
|
|
|
|
source "#{file_uri_for(gem_repo1)}"
|
|
|
|
gem "rack"
|
|
|
|
G
|
|
|
|
|
|
|
|
bundle :cache
|
|
|
|
expect(out).to include("Updating files in vendor/cache").once
|
|
|
|
|
|
|
|
bundle :cache
|
|
|
|
expect(out).to include("Updating files in vendor/cache").once
|
|
|
|
end
|
|
|
|
|
2018-11-02 19:07:56 -04:00
|
|
|
context "with --gemfile" do
|
|
|
|
it "finds the gemfile" do
|
|
|
|
gemfile bundled_app("NotGemfile"), <<-G
|
2019-05-06 12:06:21 -04:00
|
|
|
source "#{file_uri_for(gem_repo1)}"
|
2018-11-02 19:07:56 -04:00
|
|
|
gem 'rack'
|
|
|
|
G
|
|
|
|
|
2019-11-11 03:57:45 -05:00
|
|
|
bundle "cache --gemfile=NotGemfile"
|
2018-11-02 19:07:56 -04:00
|
|
|
|
|
|
|
ENV["BUNDLE_GEMFILE"] = "NotGemfile"
|
|
|
|
expect(the_bundle).to include_gems "rack 1.0.0"
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
context "with --all" do
|
|
|
|
context "without a gemspec" do
|
|
|
|
it "caches all dependencies except bundler itself" do
|
|
|
|
gemfile <<-D
|
2019-05-06 12:06:21 -04:00
|
|
|
source "#{file_uri_for(gem_repo1)}"
|
2018-11-02 19:07:56 -04:00
|
|
|
gem 'rack'
|
|
|
|
gem 'bundler'
|
|
|
|
D
|
|
|
|
|
2019-07-23 11:32:33 -04:00
|
|
|
bundle "config set cache_all true"
|
2019-11-11 03:57:45 -05:00
|
|
|
bundle :cache
|
2018-11-02 19:07:56 -04:00
|
|
|
|
|
|
|
expect(bundled_app("vendor/cache/rack-1.0.0.gem")).to exist
|
|
|
|
expect(bundled_app("vendor/cache/bundler-0.9.gem")).to_not exist
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
context "with a gemspec" do
|
|
|
|
context "that has the same name as the gem" do
|
|
|
|
before do
|
|
|
|
File.open(bundled_app("mygem.gemspec"), "w") do |f|
|
|
|
|
f.write <<-G
|
|
|
|
Gem::Specification.new do |s|
|
|
|
|
s.name = "mygem"
|
|
|
|
s.version = "0.1.1"
|
|
|
|
s.summary = ""
|
|
|
|
s.authors = ["gem author"]
|
|
|
|
s.add_development_dependency "nokogiri", "=1.4.2"
|
|
|
|
end
|
|
|
|
G
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
it "caches all dependencies except bundler and the gemspec specified gem" do
|
|
|
|
gemfile <<-D
|
2019-05-06 12:06:21 -04:00
|
|
|
source "#{file_uri_for(gem_repo1)}"
|
2018-11-02 19:07:56 -04:00
|
|
|
gem 'rack'
|
|
|
|
gemspec
|
|
|
|
D
|
|
|
|
|
2019-07-23 11:32:33 -04:00
|
|
|
bundle "config set cache_all true"
|
2020-06-03 14:45:36 -04:00
|
|
|
bundle :cache
|
2018-11-02 19:07:56 -04:00
|
|
|
|
|
|
|
expect(bundled_app("vendor/cache/rack-1.0.0.gem")).to exist
|
|
|
|
expect(bundled_app("vendor/cache/nokogiri-1.4.2.gem")).to exist
|
|
|
|
expect(bundled_app("vendor/cache/mygem-0.1.1.gem")).to_not exist
|
|
|
|
expect(bundled_app("vendor/cache/bundler-0.9.gem")).to_not exist
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
context "that has a different name as the gem" do
|
|
|
|
before do
|
|
|
|
File.open(bundled_app("mygem_diffname.gemspec"), "w") do |f|
|
|
|
|
f.write <<-G
|
|
|
|
Gem::Specification.new do |s|
|
|
|
|
s.name = "mygem"
|
|
|
|
s.version = "0.1.1"
|
|
|
|
s.summary = ""
|
|
|
|
s.authors = ["gem author"]
|
|
|
|
s.add_development_dependency "nokogiri", "=1.4.2"
|
|
|
|
end
|
|
|
|
G
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
it "caches all dependencies except bundler and the gemspec specified gem" do
|
|
|
|
gemfile <<-D
|
2019-05-06 12:06:21 -04:00
|
|
|
source "#{file_uri_for(gem_repo1)}"
|
2018-11-02 19:07:56 -04:00
|
|
|
gem 'rack'
|
|
|
|
gemspec
|
|
|
|
D
|
|
|
|
|
2019-07-23 11:32:33 -04:00
|
|
|
bundle "config set cache_all true"
|
2020-06-03 14:45:36 -04:00
|
|
|
bundle :cache
|
2018-11-02 19:07:56 -04:00
|
|
|
|
|
|
|
expect(bundled_app("vendor/cache/rack-1.0.0.gem")).to exist
|
|
|
|
expect(bundled_app("vendor/cache/nokogiri-1.4.2.gem")).to exist
|
|
|
|
expect(bundled_app("vendor/cache/mygem-0.1.1.gem")).to_not exist
|
|
|
|
expect(bundled_app("vendor/cache/bundler-0.9.gem")).to_not exist
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
context "with multiple gemspecs" do
|
|
|
|
before do
|
|
|
|
File.open(bundled_app("mygem.gemspec"), "w") do |f|
|
|
|
|
f.write <<-G
|
|
|
|
Gem::Specification.new do |s|
|
|
|
|
s.name = "mygem"
|
|
|
|
s.version = "0.1.1"
|
|
|
|
s.summary = ""
|
|
|
|
s.authors = ["gem author"]
|
|
|
|
s.add_development_dependency "nokogiri", "=1.4.2"
|
|
|
|
end
|
|
|
|
G
|
|
|
|
end
|
|
|
|
File.open(bundled_app("mygem_client.gemspec"), "w") do |f|
|
|
|
|
f.write <<-G
|
|
|
|
Gem::Specification.new do |s|
|
|
|
|
s.name = "mygem_test"
|
|
|
|
s.version = "0.1.1"
|
|
|
|
s.summary = ""
|
|
|
|
s.authors = ["gem author"]
|
|
|
|
s.add_development_dependency "weakling", "=0.0.3"
|
|
|
|
end
|
|
|
|
G
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
it "caches all dependencies except bundler and the gemspec specified gems" do
|
|
|
|
gemfile <<-D
|
2019-05-06 12:06:21 -04:00
|
|
|
source "#{file_uri_for(gem_repo1)}"
|
2018-11-02 19:07:56 -04:00
|
|
|
gem 'rack'
|
|
|
|
gemspec :name => 'mygem'
|
|
|
|
gemspec :name => 'mygem_test'
|
|
|
|
D
|
|
|
|
|
2019-07-23 11:32:33 -04:00
|
|
|
bundle "config set cache_all true"
|
2020-06-03 14:45:36 -04:00
|
|
|
bundle :cache
|
2018-11-02 19:07:56 -04:00
|
|
|
|
|
|
|
expect(bundled_app("vendor/cache/rack-1.0.0.gem")).to exist
|
|
|
|
expect(bundled_app("vendor/cache/nokogiri-1.4.2.gem")).to exist
|
|
|
|
expect(bundled_app("vendor/cache/weakling-0.0.3.gem")).to exist
|
|
|
|
expect(bundled_app("vendor/cache/mygem-0.1.1.gem")).to_not exist
|
|
|
|
expect(bundled_app("vendor/cache/mygem_test-0.1.1.gem")).to_not exist
|
|
|
|
expect(bundled_app("vendor/cache/bundler-0.9.gem")).to_not exist
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2019-01-04 08:10:58 -05:00
|
|
|
context "with --path", :bundler => "< 3" do
|
2018-11-02 19:07:56 -04:00
|
|
|
it "sets root directory for gems" do
|
|
|
|
gemfile <<-D
|
2019-05-06 12:06:21 -04:00
|
|
|
source "#{file_uri_for(gem_repo1)}"
|
2018-11-02 19:07:56 -04:00
|
|
|
gem 'rack'
|
|
|
|
D
|
|
|
|
|
2020-06-03 14:45:36 -04:00
|
|
|
bundle "cache --path #{bundled_app("test")}"
|
2018-11-02 19:07:56 -04:00
|
|
|
|
|
|
|
expect(the_bundle).to include_gems "rack 1.0.0"
|
|
|
|
expect(bundled_app("test/vendor/cache/")).to exist
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
context "with --no-install" do
|
|
|
|
it "puts the gems in vendor/cache but does not install them" do
|
|
|
|
gemfile <<-D
|
2019-05-06 12:06:21 -04:00
|
|
|
source "#{file_uri_for(gem_repo1)}"
|
2018-11-02 19:07:56 -04:00
|
|
|
gem 'rack'
|
|
|
|
D
|
|
|
|
|
2020-06-03 14:45:36 -04:00
|
|
|
bundle "cache --no-install"
|
2018-11-02 19:07:56 -04:00
|
|
|
|
|
|
|
expect(the_bundle).not_to include_gems "rack 1.0.0"
|
|
|
|
expect(bundled_app("vendor/cache/rack-1.0.0.gem")).to exist
|
|
|
|
end
|
|
|
|
|
|
|
|
it "does not prevent installing gems with bundle install" do
|
|
|
|
gemfile <<-D
|
2019-05-06 12:06:21 -04:00
|
|
|
source "#{file_uri_for(gem_repo1)}"
|
2018-11-02 19:07:56 -04:00
|
|
|
gem 'rack'
|
|
|
|
D
|
|
|
|
|
2020-06-03 14:45:36 -04:00
|
|
|
bundle "cache --no-install"
|
|
|
|
bundle "install"
|
2018-11-02 19:07:56 -04:00
|
|
|
|
|
|
|
expect(the_bundle).to include_gems "rack 1.0.0"
|
|
|
|
end
|
2019-04-14 02:01:35 -04:00
|
|
|
|
|
|
|
it "does not prevent installing gems with bundle update" do
|
|
|
|
gemfile <<-D
|
2019-05-06 12:06:21 -04:00
|
|
|
source "#{file_uri_for(gem_repo1)}"
|
2019-04-14 02:01:35 -04:00
|
|
|
gem "rack", "1.0.0"
|
|
|
|
D
|
|
|
|
|
2020-06-03 14:45:36 -04:00
|
|
|
bundle "cache --no-install"
|
|
|
|
bundle "update --all"
|
2019-04-14 02:01:35 -04:00
|
|
|
|
|
|
|
expect(the_bundle).to include_gems "rack 1.0.0"
|
|
|
|
end
|
2018-11-02 19:07:56 -04:00
|
|
|
end
|
|
|
|
|
|
|
|
context "with --all-platforms" do
|
2019-04-14 02:01:35 -04:00
|
|
|
it "puts the gems in vendor/cache even for other rubies" do
|
2018-11-02 19:07:56 -04:00
|
|
|
gemfile <<-D
|
2019-05-06 12:06:21 -04:00
|
|
|
source "#{file_uri_for(gem_repo1)}"
|
2021-04-21 07:54:29 -04:00
|
|
|
gem 'rack', :platforms => [:ruby_20, :x64_mingw_20]
|
2018-11-02 19:07:56 -04:00
|
|
|
D
|
|
|
|
|
2019-11-11 03:57:45 -05:00
|
|
|
bundle "cache --all-platforms"
|
2018-11-02 19:07:56 -04:00
|
|
|
expect(bundled_app("vendor/cache/rack-1.0.0.gem")).to exist
|
|
|
|
end
|
2017-10-20 15:19:32 -04:00
|
|
|
|
|
|
|
it "does not attempt to install gems in without groups" do
|
2017-10-20 15:36:52 -04:00
|
|
|
build_repo4 do
|
|
|
|
build_gem "uninstallable", "2.0" do |s|
|
|
|
|
s.add_development_dependency "rake"
|
|
|
|
s.extensions << "Rakefile"
|
|
|
|
s.write "Rakefile", "task(:default) { raise 'CANNOT INSTALL' }"
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2021-01-03 20:11:34 -05:00
|
|
|
bundle "config set --local without wo"
|
2020-06-03 14:46:03 -04:00
|
|
|
install_gemfile <<-G
|
2021-04-21 07:54:29 -04:00
|
|
|
source "#{file_uri_for(gem_repo1)}"
|
2017-10-20 15:19:32 -04:00
|
|
|
gem "rack"
|
|
|
|
group :wo do
|
|
|
|
gem "weakling"
|
2021-04-21 07:54:29 -04:00
|
|
|
gem "uninstallable", :source => "#{file_uri_for(gem_repo4)}"
|
2017-10-20 15:19:32 -04:00
|
|
|
end
|
|
|
|
G
|
|
|
|
|
2020-06-03 14:45:36 -04:00
|
|
|
bundle :cache, "all-platforms" => true
|
2017-10-20 15:19:32 -04:00
|
|
|
expect(bundled_app("vendor/cache/weakling-0.0.3.gem")).to exist
|
2017-10-20 15:36:52 -04:00
|
|
|
expect(bundled_app("vendor/cache/uninstallable-2.0.gem")).to exist
|
2017-10-20 15:19:32 -04:00
|
|
|
expect(the_bundle).to include_gem "rack 1.0"
|
2017-10-20 15:36:52 -04:00
|
|
|
expect(the_bundle).not_to include_gems "weakling", "uninstallable"
|
2017-10-20 15:19:32 -04:00
|
|
|
|
2021-01-03 20:11:34 -05:00
|
|
|
bundle "config set --local without wo"
|
2020-06-03 14:45:36 -04:00
|
|
|
bundle :install
|
2017-10-20 15:19:32 -04:00
|
|
|
expect(the_bundle).to include_gem "rack 1.0"
|
2017-10-20 15:36:52 -04:00
|
|
|
expect(the_bundle).not_to include_gems "weakling", "uninstallable"
|
2017-10-20 15:19:32 -04:00
|
|
|
end
|
2021-04-21 07:54:29 -04:00
|
|
|
|
|
|
|
it "does not fail to cache gems in excluded groups when there's a lockfile but gems not previously installed" do
|
|
|
|
bundle "config set --local without wo"
|
|
|
|
gemfile <<-G
|
|
|
|
source "https://my.gem.repo.1"
|
|
|
|
gem "rack"
|
|
|
|
group :wo do
|
|
|
|
gem "weakling"
|
|
|
|
end
|
|
|
|
G
|
|
|
|
|
|
|
|
bundle :lock, :artifice => "compact_index", :env => { "BUNDLER_SPEC_GEM_REPO" => gem_repo1.to_s }
|
|
|
|
bundle :cache, "all-platforms" => true, :artifice => "compact_index", :env => { "BUNDLER_SPEC_GEM_REPO" => gem_repo1.to_s }
|
|
|
|
expect(bundled_app("vendor/cache/weakling-0.0.3.gem")).to exist
|
|
|
|
end
|
2018-11-02 19:07:56 -04:00
|
|
|
end
|
|
|
|
|
2020-05-29 06:27:15 -04:00
|
|
|
context "with frozen configured" do
|
2018-11-02 19:07:56 -04:00
|
|
|
before do
|
|
|
|
gemfile <<-G
|
2019-05-06 12:06:21 -04:00
|
|
|
source "#{file_uri_for(gem_repo1)}"
|
2018-11-02 19:07:56 -04:00
|
|
|
gem "rack"
|
|
|
|
G
|
|
|
|
bundle "install"
|
|
|
|
end
|
|
|
|
|
2020-05-29 06:46:16 -04:00
|
|
|
subject do
|
2021-01-03 20:11:34 -05:00
|
|
|
bundle "config set --local frozen true"
|
2020-06-03 12:43:17 -04:00
|
|
|
bundle :cache, :raise_on_error => false
|
2020-05-29 06:46:16 -04:00
|
|
|
end
|
2018-11-02 19:07:56 -04:00
|
|
|
|
|
|
|
it "tries to install with frozen" do
|
2020-06-03 14:45:36 -04:00
|
|
|
bundle "config set deployment true"
|
2018-11-02 19:07:56 -04:00
|
|
|
gemfile <<-G
|
2019-05-06 12:06:21 -04:00
|
|
|
source "#{file_uri_for(gem_repo1)}"
|
2018-11-02 19:07:56 -04:00
|
|
|
gem "rack"
|
|
|
|
gem "rack-obama"
|
|
|
|
G
|
|
|
|
subject
|
2020-06-24 13:53:16 -04:00
|
|
|
expect(exitstatus).to eq(16)
|
2019-04-14 02:01:35 -04:00
|
|
|
expect(err).to include("deployment mode")
|
|
|
|
expect(err).to include("You have added to the Gemfile")
|
|
|
|
expect(err).to include("* rack-obama")
|
2018-11-02 19:07:56 -04:00
|
|
|
bundle "env"
|
|
|
|
expect(out).to include("frozen").or include("deployment")
|
|
|
|
end
|
|
|
|
end
|
2021-05-28 06:47:49 -04:00
|
|
|
|
|
|
|
context "with gems with extensions" do
|
|
|
|
before do
|
|
|
|
build_repo2 do
|
|
|
|
build_gem "racc", "2.0" do |s|
|
|
|
|
s.add_dependency "rake"
|
|
|
|
s.extensions << "Rakefile"
|
|
|
|
s.write "Rakefile", "task(:default) { puts 'INSTALLING rack' }"
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
gemfile <<~G
|
|
|
|
source "#{file_uri_for(gem_repo2)}"
|
|
|
|
|
|
|
|
gem "racc"
|
|
|
|
G
|
|
|
|
end
|
|
|
|
|
|
|
|
it "installs them properly from cache to a different path" do
|
|
|
|
bundle "cache"
|
|
|
|
bundle "config set --local path vendor/bundle"
|
|
|
|
bundle "install --local"
|
|
|
|
end
|
|
|
|
end
|
2018-11-02 19:07:56 -04:00
|
|
|
end
|
|
|
|
|
|
|
|
RSpec.describe "bundle install with gem sources" do
|
|
|
|
describe "when cached and locked" do
|
|
|
|
it "does not hit the remote at all" do
|
|
|
|
build_repo2
|
|
|
|
install_gemfile <<-G
|
2019-05-06 12:06:21 -04:00
|
|
|
source "#{file_uri_for(gem_repo2)}"
|
2018-11-02 19:07:56 -04:00
|
|
|
gem "rack"
|
|
|
|
G
|
|
|
|
|
2019-11-11 03:57:45 -05:00
|
|
|
bundle :cache
|
2018-11-02 19:07:56 -04:00
|
|
|
simulate_new_machine
|
|
|
|
FileUtils.rm_rf gem_repo2
|
|
|
|
|
|
|
|
bundle "install --local"
|
|
|
|
expect(the_bundle).to include_gems "rack 1.0.0"
|
|
|
|
end
|
|
|
|
|
2021-05-28 06:47:49 -04:00
|
|
|
it "does not hit the remote at all in frozen mode" do
|
2018-11-02 19:07:56 -04:00
|
|
|
build_repo2
|
2020-06-03 14:46:03 -04:00
|
|
|
install_gemfile <<-G
|
2019-05-06 12:06:21 -04:00
|
|
|
source "#{file_uri_for(gem_repo2)}"
|
2018-11-02 19:07:56 -04:00
|
|
|
gem "rack"
|
|
|
|
G
|
|
|
|
|
2020-06-03 14:45:36 -04:00
|
|
|
bundle :cache
|
2018-11-02 19:07:56 -04:00
|
|
|
simulate_new_machine
|
|
|
|
FileUtils.rm_rf gem_repo2
|
|
|
|
|
2021-01-03 20:11:34 -05:00
|
|
|
bundle "config set --local deployment true"
|
|
|
|
bundle "config set --local path vendor/bundle"
|
2020-06-03 14:45:36 -04:00
|
|
|
bundle :install
|
2018-11-02 19:07:56 -04:00
|
|
|
expect(the_bundle).to include_gems "rack 1.0.0"
|
|
|
|
end
|
|
|
|
|
2021-05-28 06:47:49 -04:00
|
|
|
it "does not hit the remote at all when cache_all_platforms configured" do
|
|
|
|
build_repo2
|
|
|
|
install_gemfile <<-G
|
|
|
|
source "#{file_uri_for(gem_repo2)}"
|
|
|
|
gem "rack"
|
|
|
|
G
|
|
|
|
|
|
|
|
bundle :cache
|
|
|
|
simulate_new_machine
|
|
|
|
FileUtils.rm_rf gem_repo2
|
|
|
|
|
|
|
|
bundle "config set --local cache_all_platforms true"
|
|
|
|
bundle "config set --local path vendor/bundle"
|
|
|
|
bundle "install --local"
|
|
|
|
expect(out).not_to include("Fetching gem metadata")
|
|
|
|
expect(the_bundle).to include_gems "rack 1.0.0"
|
|
|
|
end
|
|
|
|
|
2018-11-02 19:07:56 -04:00
|
|
|
it "does not reinstall already-installed gems" do
|
|
|
|
install_gemfile <<-G
|
2019-05-06 12:06:21 -04:00
|
|
|
source "#{file_uri_for(gem_repo1)}"
|
2018-11-02 19:07:56 -04:00
|
|
|
gem "rack"
|
|
|
|
G
|
2019-11-11 03:57:45 -05:00
|
|
|
bundle :cache
|
2018-11-02 19:07:56 -04:00
|
|
|
|
|
|
|
build_gem "rack", "1.0.0", :path => bundled_app("vendor/cache") do |s|
|
|
|
|
s.write "lib/rack.rb", "raise 'omg'"
|
|
|
|
end
|
|
|
|
|
|
|
|
bundle :install
|
2019-06-01 05:49:40 -04:00
|
|
|
expect(err).to be_empty
|
2018-11-02 19:07:56 -04:00
|
|
|
expect(the_bundle).to include_gems "rack 1.0"
|
|
|
|
end
|
|
|
|
|
|
|
|
it "ignores cached gems for the wrong platform" do
|
|
|
|
simulate_platform "java" do
|
|
|
|
install_gemfile <<-G
|
2019-05-06 12:06:21 -04:00
|
|
|
source "#{file_uri_for(gem_repo1)}"
|
2018-11-02 19:07:56 -04:00
|
|
|
gem "platform_specific"
|
|
|
|
G
|
2019-11-11 03:57:45 -05:00
|
|
|
bundle :cache
|
2018-11-02 19:07:56 -04:00
|
|
|
end
|
|
|
|
|
|
|
|
simulate_new_machine
|
|
|
|
|
|
|
|
simulate_platform "ruby" do
|
|
|
|
install_gemfile <<-G
|
2019-05-06 12:06:21 -04:00
|
|
|
source "#{file_uri_for(gem_repo1)}"
|
2018-11-02 19:07:56 -04:00
|
|
|
gem "platform_specific"
|
|
|
|
G
|
|
|
|
run "require 'platform_specific' ; puts PLATFORM_SPECIFIC"
|
|
|
|
expect(out).to eq("1.0.0 RUBY")
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
it "does not update the cache if --no-cache is passed" do
|
|
|
|
gemfile <<-G
|
2019-05-06 12:06:21 -04:00
|
|
|
source "#{file_uri_for(gem_repo1)}"
|
2018-11-02 19:07:56 -04:00
|
|
|
gem "rack"
|
|
|
|
G
|
|
|
|
bundled_app("vendor/cache").mkpath
|
|
|
|
expect(bundled_app("vendor/cache").children).to be_empty
|
|
|
|
|
|
|
|
bundle "install --no-cache"
|
|
|
|
expect(bundled_app("vendor/cache").children).to be_empty
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|