diff options
author | Samuel Giddins <segiddins@segiddins.me> | 2017-02-10 18:10:57 -0800 |
---|---|---|
committer | Samuel Giddins <segiddins@segiddins.me> | 2017-02-10 18:12:54 -0800 |
commit | 11eb4ec0d09c5a8eb8695c80dd9f5b1f17fce9e3 (patch) | |
tree | 605ab96a559af02bc1707e034f115d78af2db06a /spec/lock | |
parent | e059bbfc2a3ffcc15c10d3dce8277afb5c4c2dea (diff) | |
download | bundler-11eb4ec0d09c5a8eb8695c80dd9f5b1f17fce9e3.tar.gz |
[Source::Path] Don’t store cache paths in the lockfileseg-install-frozen-gemspec-deps-changed
Diffstat (limited to 'spec/lock')
-rw-r--r-- | spec/lock/lockfile_spec.rb | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/spec/lock/lockfile_spec.rb b/spec/lock/lockfile_spec.rb index 8ff6b1a76d..7d768e337c 100644 --- a/spec/lock/lockfile_spec.rb +++ b/spec/lock/lockfile_spec.rb @@ -600,6 +600,36 @@ RSpec.describe "the lockfile format" do G end + it "serializes pinned path sources to the lockfile even when packaging" do + build_lib "foo" + + install_gemfile! <<-G + gem "foo", :path => "#{lib_path("foo-1.0")}" + G + + bundle! "package --all" + bundle! "install --local" + + lockfile_should_be <<-G + PATH + remote: #{lib_path("foo-1.0")} + specs: + foo (1.0) + + GEM + specs: + + PLATFORMS + #{generic_local_platform} + + DEPENDENCIES + foo! + + BUNDLED WITH + #{Bundler::VERSION} + G + end + it "sorts serialized sources by type" do build_lib "foo" bar = build_git "bar" |