1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[rubygems/rubygems] Fix bundle plugin install --help showing bundle install's help

https://github.com/rubygems/rubygems/commit/b7b7d16aa8
This commit is contained in:
David Rodríguez 2021-07-13 13:00:02 +02:00 committed by Hiroshi SHIBATA
parent c5f78ade5a
commit 71d3c9bbfa
No known key found for this signature in database
GPG key ID: F9CF13417264FAC2
2 changed files with 7 additions and 0 deletions

View file

@ -14,6 +14,7 @@ module Bundler
COMMAND_ALIASES = { COMMAND_ALIASES = {
"check" => "c", "check" => "c",
"install" => "i", "install" => "i",
"plugin" => "",
"list" => "ls", "list" => "ls",
"exec" => ["e", "ex", "exe"], "exec" => ["e", "ex", "exe"],
"cache" => ["package", "pack"], "cache" => ["package", "pack"],

View file

@ -29,6 +29,12 @@ RSpec.describe "bundler plugin install" do
plugin_should_be_installed("foo") plugin_should_be_installed("foo")
end end
it "shows help when --help flag is given" do
bundle "plugin install --help"
expect(out).to include("bundle plugin install PLUGINS # Install the plugin from the source")
end
context "plugin is already installed" do context "plugin is already installed" do
before do before do
bundle "plugin install foo --source #{file_uri_for(gem_repo2)}" bundle "plugin install foo --source #{file_uri_for(gem_repo2)}"