mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
[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.
f11a5d2df9
This commit is contained in:
parent
b0f07aff0b
commit
acd82bd923
Notes:
git
2020-06-18 19:15:23 +09:00
1 changed files with 5 additions and 1 deletions
6
spec/bundler/cache/path_spec.rb
vendored
6
spec/bundler/cache/path_spec.rb
vendored
|
@ -79,12 +79,16 @@ RSpec.describe "bundle cache with path" do
|
||||||
bundle "config set cache_all true"
|
bundle "config set cache_all true"
|
||||||
bundle :cache
|
bundle :cache
|
||||||
|
|
||||||
|
expect(bundled_app("vendor/cache/foo-1.0")).to exist
|
||||||
|
|
||||||
|
build_lib "bar"
|
||||||
|
|
||||||
install_gemfile <<-G
|
install_gemfile <<-G
|
||||||
gem "bar", :path => '#{lib_path("bar-1.0")}'
|
gem "bar", :path => '#{lib_path("bar-1.0")}'
|
||||||
G
|
G
|
||||||
|
|
||||||
bundle :cache
|
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
|
end
|
||||||
|
|
||||||
it "raises a warning without --all", :bundler => "< 3" do
|
it "raises a warning without --all", :bundler => "< 3" do
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue