mirror of
https://github.com/ruby/ruby.git
synced 2026-01-27 04:24:23 +00:00
[rubygems/rubygems] Improve specs testing option remembering behavior
By making them more explicit. https://github.com/rubygems/rubygems/commit/9979c5a811
This commit is contained in:
parent
b2a460ea3e
commit
99dc55987d
Notes:
git
2020-06-05 07:33:58 +09:00
@ -152,7 +152,7 @@ RSpec.describe "bundle cache" do
|
||||
gem 'rack'
|
||||
D
|
||||
|
||||
bundle! :cache, forgotten_command_line_options(:path => bundled_app("test"))
|
||||
bundle! "cache --path #{bundled_app("test")}"
|
||||
|
||||
expect(the_bundle).to include_gems "rack 1.0.0"
|
||||
expect(bundled_app("test/vendor/cache/")).to exist
|
||||
|
||||
@ -278,16 +278,16 @@ RSpec.describe "bundle install with gem sources" do
|
||||
end
|
||||
|
||||
it "allows running bundle install --system without deleting foo", :bundler => "< 3" do
|
||||
bundle "install", forgotten_command_line_options(:path => "vendor")
|
||||
bundle "install", forgotten_command_line_options(:system => true)
|
||||
bundle "install --path vendor"
|
||||
bundle "install --system"
|
||||
FileUtils.rm_rf(bundled_app("vendor"))
|
||||
expect(the_bundle).to include_gems "rack 1.0"
|
||||
end
|
||||
|
||||
it "allows running bundle install --system after deleting foo", :bundler => "< 3" do
|
||||
bundle "install", forgotten_command_line_options(:path => "vendor")
|
||||
bundle "install --path vendor"
|
||||
FileUtils.rm_rf(bundled_app("vendor"))
|
||||
bundle "install", forgotten_command_line_options(:system => true)
|
||||
bundle "install --system"
|
||||
expect(the_bundle).to include_gems "rack 1.0"
|
||||
end
|
||||
end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user