summaryrefslogtreecommitdiff
path: root/spec/plugins
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/plugins
parentf1ffdf65a07f5764c42dfd6bbb044d6afeda0b86 (diff)
downloadbundler-6b40a8a22bfb3f04e677a3de4d5b9329c689d2c2.tar.gz
Get the Bundler 2 specs passing with transitive source pinning
Diffstat (limited to 'spec/plugins')
-rw-r--r--spec/plugins/source/example_spec.rb29
1 files changed, 28 insertions, 1 deletions
diff --git a/spec/plugins/source/example_spec.rb b/spec/plugins/source/example_spec.rb
index d898c1f95c..69e33e4077 100644
--- a/spec/plugins/source/example_spec.rb
+++ b/spec/plugins/source/example_spec.rb
@@ -326,7 +326,7 @@ RSpec.describe "real source plugins" do
expect(the_bundle).to include_gems("ma-gitp-gem 1.0")
end
- it "writes to lock file" do
+ it "writes to lock file", :bundler => "< 2" do
revision = revision_for(lib_path("ma-gitp-gem-1.0"))
bundle "install"
@@ -353,6 +353,33 @@ RSpec.describe "real source plugins" do
G
end
+ it "writes to lock file", :bundler => "2" do
+ revision = revision_for(lib_path("ma-gitp-gem-1.0"))
+ bundle "install"
+
+ lockfile_should_be <<-G
+ GEM
+ remote: file:#{gem_repo2}/
+ specs:
+
+ PLUGIN SOURCE
+ remote: file://#{lib_path("ma-gitp-gem-1.0")}
+ type: gitp
+ revision: #{revision}
+ specs:
+ ma-gitp-gem (1.0)
+
+ PLATFORMS
+ #{generic_local_platform}
+
+ DEPENDENCIES
+ ma-gitp-gem!
+
+ BUNDLED WITH
+ #{Bundler::VERSION}
+ G
+ end
+
context "with lockfile" do
before do
revision = revision_for(lib_path("ma-gitp-gem-1.0"))