summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHiroshi SHIBATA <hsbt@ruby-lang.org>2025-10-15 13:43:29 +0900
committergit <svn-admin@ruby-lang.org>2025-10-15 07:15:49 +0000
commit6c9acb533f747682df2f681070596c7bbaccde18 (patch)
treea3a03bf813ca7612efa44923826f3b49d576ad88
parentc3e6e65591e881fd8816de79d00d4be73a4edf3f (diff)
[rubygems/rubygems] Added example for global path with Gemfile
https://github.com/rubygems/rubygems/commit/cd1493eec4
-rw-r--r--spec/bundler/other/major_deprecation_spec.rb15
1 files changed, 15 insertions, 0 deletions
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'"