summaryrefslogtreecommitdiff
path: root/spec/plugins/install_spec.rb
diff options
context:
space:
mode:
authorSaverio Miroddi <saverio.pub2@gmail.com>2018-03-11 19:09:02 +0100
committerSaverio Miroddi <saverio.pub2@gmail.com>2018-03-11 19:26:19 +0100
commita160041400df2bcb5b2dd0dd88c788d4bbfcf8ea (patch)
tree15e52dfe2771b9a2cd8604bf37d4d9d814d7672e /spec/plugins/install_spec.rb
parente496b30b75e0e93ac30766f7e9d5cb81385024bb (diff)
downloadbundler-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/install_spec.rb')
-rw-r--r--spec/plugins/install_spec.rb11
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