From acd82bd923ddaa2e3f5afbdc8fc087d28b62f55d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Rodr=C3=ADguez?= Date: Sat, 6 Jun 2020 18:41:41 +0200 Subject: [rubygems/rubygems] Fix silently broken spec This spec was broken. The second `bundle install` was silently failing. This means that the spec was actually checking an scenario completely different from the one that was supposed to be tested. And also a very dummy one: that running `bundle cache` twice doesn't cache a completely unrelated gem. https://github.com/rubygems/rubygems/commit/f11a5d2df9 --- spec/bundler/cache/path_spec.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'spec') diff --git a/spec/bundler/cache/path_spec.rb b/spec/bundler/cache/path_spec.rb index bd47ac925d..abcda4341c 100644 --- a/spec/bundler/cache/path_spec.rb +++ b/spec/bundler/cache/path_spec.rb @@ -79,12 +79,16 @@ RSpec.describe "bundle cache with path" do bundle "config set cache_all true" bundle :cache + expect(bundled_app("vendor/cache/foo-1.0")).to exist + + build_lib "bar" + install_gemfile <<-G gem "bar", :path => '#{lib_path("bar-1.0")}' G bundle :cache - expect(bundled_app("vendor/cache/bar-1.0")).not_to exist + expect(bundled_app("vendor/cache/foo-1.0")).not_to exist end it "raises a warning without --all", :bundler => "< 3" do -- cgit v1.2.3