diff options
author | Saverio Miroddi <saverio.pub2@gmail.com> | 2018-03-11 19:09:02 +0100 |
---|---|---|
committer | Saverio Miroddi <saverio.pub2@gmail.com> | 2018-03-11 19:26:19 +0100 |
commit | a160041400df2bcb5b2dd0dd88c788d4bbfcf8ea (patch) | |
tree | 15e52dfe2771b9a2cd8604bf37d4d9d814d7672e /spec/plugins | |
parent | e496b30b75e0e93ac30766f7e9d5cb81385024bb (diff) | |
download | bundler-a160041400df2bcb5b2dd0dd88c788d4bbfcf8ea.tar.gz |
Add file path source option (`--file`) to plugin installation
Convenience option for installing plugins from a local repository, using the local path:
bundle plugin install --file /path/to/bundler-dependency_graph bundler-dependency_graph
Diffstat (limited to 'spec/plugins')
-rw-r--r-- | spec/plugins/install_spec.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/spec/plugins/install_spec.rb b/spec/plugins/install_spec.rb index 9304d78062..7c0212ed76 100644 --- a/spec/plugins/install_spec.rb +++ b/spec/plugins/install_spec.rb @@ -122,6 +122,17 @@ RSpec.describe "bundler plugin install" do expect(out).to include("Installed plugin foo") plugin_should_be_installed("foo") end + + it "installs form a local git source" do + build_git "foo" do |s| + s.write "plugins.rb" + end + + bundle "plugin install foo --file #{lib_path("foo-1.0")}" + + expect(out).to include("Installed plugin foo") + plugin_should_be_installed("foo") + end end context "Gemfile eval" do |