[rubygems/rubygems] Added test for rubygems

https://github.com/rubygems/rubygems/commit/64405147c9
This commit is contained in:
Hiroshi SHIBATA 2024-01-24 10:51:21 +09:00 committed by git
parent 6191f4a169
commit fb39128dce

View File

@ -548,4 +548,14 @@ if you believe they were disclosed to a third party.
assert_equal("---\n:foo: \"bar\"\n", actual)
end
def test_handle_comment
yaml = <<~YAML
---
:foo: bar # buzz
YAML
actual = Gem::ConfigFile.load_with_rubygems_config_hash(yaml)
assert_equal("bar", actual[:foo])
end
end