aboutsummaryrefslogtreecommitdiffstats
path: root/spec/bundler
diff options
context:
space:
mode:
authorDavid Rodriguez <deivid.rodriguez@riseup.net>2024-03-13 16:29:18 +0100
committergit <svn-admin@ruby-lang.org>2024-03-17 22:55:16 +0000
commitdc06375c4fd471ed75da74e28154357a22c2d862 (patch)
treef80b18439a51571450fac9578adab1ad85506d8a /spec/bundler
parent5fd6b461c777654493c32c03c19f0b75362b966f (diff)
downloadruby-dc06375c4fd471ed75da74e28154357a22c2d862.tar.gz
[rubygems/rubygems] Ignore commented out keys in config file
https://github.com/rubygems/rubygems/commit/c4a8d2a930
Diffstat (limited to 'spec/bundler')
-rw-r--r--spec/bundler/bundler/settings_spec.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/spec/bundler/bundler/settings_spec.rb b/spec/bundler/bundler/settings_spec.rb
index 469af2b8c6..634e0faf91 100644
--- a/spec/bundler/bundler/settings_spec.rb
+++ b/spec/bundler/bundler/settings_spec.rb
@@ -319,6 +319,15 @@ that would suck --ehhh=oh geez it looks like i might have broken bundler somehow
expect(settings["mirror.https://rubygems.org/"]).to eq("http://rubygems-mirror.org")
end
+ it "ignores commented out keys" do
+ create_file bundled_app(".bundle/config"), <<~C
+ # BUNDLE_MY-PERSONAL-SERVER__ORG: my-personal-server.org
+ C
+
+ expect(Bundler.ui).not_to receive(:warn)
+ expect(settings.all).to be_empty
+ end
+
it "converts older keys with dashes" do
config("BUNDLE_MY-PERSONAL-SERVER__ORG" => "my-personal-server.org")
expect(Bundler.ui).to receive(:warn).with(