mirror of
https://github.com/ruby/ruby.git
synced 2025-09-15 08:33:58 +02:00
[rubygems/rubygems] Allow installing plugins from path via CLI
Also bring the man page up to date.
a849bd6947
This commit is contained in:
parent
cbc11bcb63
commit
44b5c912da
35 changed files with 97 additions and 50 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue