summaryrefslogtreecommitdiff
path: root/spec/plugins/source_spec.rb
diff options
context:
space:
mode:
authorAsutosh Palai <asupalai@gmail.com>2016-06-23 23:05:46 +0530
committerAsutosh Palai <asupalai@gmail.com>2016-07-03 09:41:58 +0530
commitcf2f8f8a137f67a5476a2c7990e6b25f1895bbd1 (patch)
treeae672aff1b1c0fe1dccb48e55d4526a143c4ce36 /spec/plugins/source_spec.rb
parentc5acf62b80214ab61c6c0befa352f47ab4faf720 (diff)
downloadbundler-cf2f8f8a137f67a5476a2c7990e6b25f1895bbd1.tar.gz
Fixing explicit default plugin source
Diffstat (limited to 'spec/plugins/source_spec.rb')
-rw-r--r--spec/plugins/source_spec.rb22
1 files changed, 22 insertions, 0 deletions
diff --git a/spec/plugins/source_spec.rb b/spec/plugins/source_spec.rb
index a52170868d..17a801979b 100644
--- a/spec/plugins/source_spec.rb
+++ b/spec/plugins/source_spec.rb
@@ -82,6 +82,28 @@ describe "bundler source plugin" do
plugin_should_not_be_installed("bundler-source-psource")
end
end
+
+ context "explicit default source" do
+ before do
+ install_gemfile <<-G
+ source "file://#{gem_repo2}"
+
+ plugin "bundler-source-psource"
+
+ source "file://#{lib_path("gitp")}", :type => :psource do
+ end
+ G
+ end
+
+ it "completes successfully" do
+ expect(out).to include("Bundle complete!")
+ end
+
+ it "installs the default one" do
+ plugin_should_be_installed("bundler-source-psource")
+ end
+ end
+
end
end
end