diff options
author | Cody Cutrer <cody@instructure.com> | 2023-09-14 11:35:50 -0600 |
---|---|---|
committer | git <svn-admin@ruby-lang.org> | 2024-03-27 11:34:46 +0000 |
commit | 44b5c912daae6d4e6dba6e40f13a2840c144cfa8 (patch) | |
tree | bb99a67b9c7acc5ee023e78951ebfe96e165383f /spec/bundler/plugins | |
parent | cbc11bcb63ccebd8fc3f12362b8d6dbcf06d7fdd (diff) |
[rubygems/rubygems] Allow installing plugins from path via CLI
Also bring the man page up to date.
https://github.com/rubygems/rubygems/commit/a849bd6947
Diffstat (limited to 'spec/bundler/plugins')
-rw-r--r-- | spec/bundler/plugins/install_spec.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/spec/bundler/plugins/install_spec.rb b/spec/bundler/plugins/install_spec.rb index 86eb4e584c..61c513ed72 100644 --- a/spec/bundler/plugins/install_spec.rb +++ b/spec/bundler/plugins/install_spec.rb @@ -212,6 +212,16 @@ RSpec.describe "bundler plugin install" do end end + it "installs from a path source" do + build_lib "path_plugin" do |s| + s.write "plugins.rb" + end + bundle "plugin install path_plugin --path #{lib_path("path_plugin-1.0")}" + + expect(out).to include("Installed plugin path_plugin") + plugin_should_be_installed("path_plugin") + end + context "Gemfile eval" do before do allow(Bundler::SharedHelpers).to receive(:find_gemfile).and_return(bundled_app_gemfile) |