diff options
author | Saverio Miroddi <saverio.pub2@gmail.com> | 2018-03-19 12:37:00 +0100 |
---|---|---|
committer | Saverio Miroddi <saverio.pub2@gmail.com> | 2018-03-19 12:39:54 +0100 |
commit | 39258c0453c7cff7c504158dad20e679ad37c5e5 (patch) | |
tree | 341d531d1d4ac59b21e118715ff43de3e11071fe /spec/plugins | |
parent | 354ee6291593a8838c9424ae8fdab21d3a1d8c87 (diff) | |
download | bundler-39258c0453c7cff7c504158dad20e679ad37c5e5.tar.gz |
Plugin installer: make remote and local git source options mutually exclusive
Diffstat (limited to 'spec/plugins')
-rw-r--r-- | spec/plugins/install_spec.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/spec/plugins/install_spec.rb b/spec/plugins/install_spec.rb index 7c0212ed76..50d380ea8c 100644 --- a/spec/plugins/install_spec.rb +++ b/spec/plugins/install_spec.rb @@ -133,6 +133,13 @@ RSpec.describe "bundler plugin install" do expect(out).to include("Installed plugin foo") plugin_should_be_installed("foo") end + + it "raises an error when both git and local git sources are specified" do + bundle "plugin install foo --file /phony/path/project --git git@gitphony.com:/repo/project" + + expect(exitstatus).not_to eq(0) if exitstatus + expect(out).to eq("Remote and local plugin git sources can't be both specified") + end end context "Gemfile eval" do |