summaryrefslogtreecommitdiff
path: root/spec/install/gemfile
diff options
context:
space:
mode:
authorSamuel Giddins <segiddins@segiddins.me>2017-06-03 15:15:31 -0500
committerSamuel Giddins <segiddins@segiddins.me>2017-06-14 10:29:52 -0500
commit9e1e5e1273e929543b5d6ed43df108dd4fb8ea25 (patch)
tree72daeefaf7f3589d2943ffca03b2782ee9cc4b32 /spec/install/gemfile
parentddcca6254cc4e63cbb25b78f8ec93462fa56249c (diff)
downloadbundler-9e1e5e1273e929543b5d6ed43df108dd4fb8ea25.tar.gz
[Installer] Load plugin files from path gems
Diffstat (limited to 'spec/install/gemfile')
-rw-r--r--spec/install/gemfile/path_spec.rb23
1 files changed, 23 insertions, 0 deletions
diff --git a/spec/install/gemfile/path_spec.rb b/spec/install/gemfile/path_spec.rb
index 49dda37aee..e76d5c486e 100644
--- a/spec/install/gemfile/path_spec.rb
+++ b/spec/install/gemfile/path_spec.rb
@@ -590,5 +590,28 @@ RSpec.describe "bundle install with explicit source paths" do
:requires => [lib_path("install_hooks.rb")]
expect(out).to include("failed for foo-1.0")
end
+
+ it "loads plugins from the path gem" do
+ foo_file = home("foo_plugin_loaded")
+ bar_file = home("bar_plugin_loaded")
+ expect(foo_file).not_to be_file
+ expect(bar_file).not_to be_file
+
+ build_lib "foo" do |s|
+ s.write("lib/rubygems_plugin.rb", "FileUtils.touch('#{foo_file}')")
+ end
+
+ build_git "bar" do |s|
+ s.write("lib/rubygems_plugin.rb", "FileUtils.touch('#{bar_file}')")
+ end
+
+ install_gemfile! <<-G
+ gem "foo", :path => "#{lib_path("foo-1.0")}"
+ gem "bar", :path => "#{lib_path("bar-1.0")}"
+ G
+
+ expect(foo_file).to be_file
+ expect(bar_file).to be_file
+ end
end
end