summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2020-06-06 18:41:41 +0200
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2020-06-18 19:14:15 +0900
commitacd82bd923ddaa2e3f5afbdc8fc087d28b62f55d (patch)
treea7b56cf571ac4928361150f35086e8b7691911e6 /spec
parentb0f07aff0bf8f5701de24b01df50dd86c87b4763 (diff)
[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
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/3212
Diffstat (limited to 'spec')
-rw-r--r--spec/bundler/cache/path_spec.rb6
1 files changed, 5 insertions, 1 deletions
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