[rubygems/rubygems] Added test for rubygems
https://github.com/rubygems/rubygems/commit/64405147c9
This commit is contained in:
parent
6191f4a169
commit
fb39128dce
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user