diff options
Diffstat (limited to 'spec/lock/lockfile_spec.rb')
-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" |