summaryrefslogtreecommitdiff
path: root/spec/bundler
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2021-07-13 13:00:02 +0200
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2021-07-16 15:40:08 +0900
commit71d3c9bbfaa1cf251205e1fb7f9611c9dee54e57 (patch)
tree628b19b9c341a84e5f4ac60879d4b85d4f89361e /spec/bundler
parentc5f78ade5a9245e9620de7f9d0e0d7af19f9f863 (diff)
[rubygems/rubygems] Fix `bundle plugin install --help` showing `bundle install`'s help
https://github.com/rubygems/rubygems/commit/b7b7d16aa8
Diffstat (limited to 'spec/bundler')
-rw-r--r--spec/bundler/plugins/install_spec.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/bundler/plugins/install_spec.rb b/spec/bundler/plugins/install_spec.rb
index 2175610b10..ef39e75a58 100644
--- a/spec/bundler/plugins/install_spec.rb
+++ b/spec/bundler/plugins/install_spec.rb
@@ -29,6 +29,12 @@ RSpec.describe "bundler plugin install" do
plugin_should_be_installed("foo")
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
before do
bundle "plugin install foo --source #{file_uri_for(gem_repo2)}"