diff options
author | alpha0x00 <[email protected]> | 2024-07-14 22:01:57 +0800 |
---|---|---|
committer | git <[email protected]> | 2024-07-19 03:03:16 +0000 |
commit | 3222c672628dba20367475cfaf832b82b2cc3d4c (patch) | |
tree | 76d45fd16029eecfadc78fdc25c9ff122c302eb8 /test | |
parent | 1c81d1a69dfc909baf128d6d1ffe636f2e8a3194 (diff) |
[rubygems/rubygems] Fix line comment issue for map
https://github.com/rubygems/rubygems/commit/7ca06e139b
Diffstat (limited to 'test')
-rw-r--r-- | test/rubygems/test_gem_config_file.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/rubygems/test_gem_config_file.rb b/test/rubygems/test_gem_config_file.rb index b28dcf503e..4230eda4d3 100644 --- a/test/rubygems/test_gem_config_file.rb +++ b/test/rubygems/test_gem_config_file.rb @@ -569,10 +569,14 @@ if you believe they were disclosed to a third party. yaml = <<~YAML --- :foo: bar # buzz + #:notkey: bar YAML actual = Gem::ConfigFile.load_with_rubygems_config_hash(yaml) assert_equal("bar", actual[:foo]) + assert_equal(false, actual.key?("#:notkey")) + assert_equal(false, actual.key?(:notkey)) + assert_equal(1, actual.size) end def test_s3_source |