From 6c9acb533f747682df2f681070596c7bbaccde18 Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Wed, 15 Oct 2025 13:43:29 +0900 Subject: [rubygems/rubygems] Added example for global path with Gemfile https://github.com/rubygems/rubygems/commit/cd1493eec4 --- spec/bundler/other/major_deprecation_spec.rb | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/spec/bundler/other/major_deprecation_spec.rb b/spec/bundler/other/major_deprecation_spec.rb index d701c4008d..1b04af7632 100644 --- a/spec/bundler/other/major_deprecation_spec.rb +++ b/spec/bundler/other/major_deprecation_spec.rb @@ -605,6 +605,21 @@ RSpec.describe "major deprecations" do end end + context "with a global path source" do + before do + build_lib "foo" + + install_gemfile <<-G, raise_on_error: false + path "#{lib_path("foo-1.0")}" + gem 'foo' + G + end + + it "shows an error" do + expect(err).to include("You can no longer specify a path source by itself") + end + end + context "when Bundler.setup is run in a ruby script" do before do create_file "gems.rb", "source 'https://gem.repo1'" -- cgit v1.2.3