summaryrefslogtreecommitdiff
path: root/spec/install/gemfile/path_spec.rb
diff options
context:
space:
mode:
authorSamuel Giddins <segiddins@segiddins.me>2017-06-23 17:13:11 -0500
committerSamuel Giddins <segiddins@segiddins.me>2017-06-23 23:29:07 -0500
commit6b40a8a22bfb3f04e677a3de4d5b9329c689d2c2 (patch)
tree446a39339e9616e0f000cb1fbc9ac4f1003d7efb /spec/install/gemfile/path_spec.rb
parentf1ffdf65a07f5764c42dfd6bbb044d6afeda0b86 (diff)
downloadbundler-6b40a8a22bfb3f04e677a3de4d5b9329c689d2c2.tar.gz
Get the Bundler 2 specs passing with transitive source pinning
Diffstat (limited to 'spec/install/gemfile/path_spec.rb')
-rw-r--r--spec/install/gemfile/path_spec.rb14
1 files changed, 13 insertions, 1 deletions
diff --git a/spec/install/gemfile/path_spec.rb b/spec/install/gemfile/path_spec.rb
index e76d5c486e..5f5e82074b 100644
--- a/spec/install/gemfile/path_spec.rb
+++ b/spec/install/gemfile/path_spec.rb
@@ -1,7 +1,7 @@
# frozen_string_literal: true
RSpec.describe "bundle install with explicit source paths" do
- it "fetches gems" do
+ it "fetches gems with a global path source", :bundler => "< 2" do
build_lib "foo"
install_gemfile <<-G
@@ -12,6 +12,18 @@ RSpec.describe "bundle install with explicit source paths" do
expect(the_bundle).to include_gems("foo 1.0")
end
+ it "fetches gems" do
+ build_lib "foo"
+
+ install_gemfile <<-G
+ path "#{lib_path("foo-1.0")}" do
+ gem 'foo'
+ end
+ G
+
+ expect(the_bundle).to include_gems("foo 1.0")
+ end
+
it "supports pinned paths" do
build_lib "foo"