Skip to content

Commit fb39128

Browse files
hsbtmatzbot
authored andcommitted
[rubygems/rubygems] Added test for rubygems
rubygems/rubygems@64405147c9
1 parent 6191f4a commit fb39128

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

test/rubygems/test_gem_config_file.rb

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -548,4 +548,14 @@ def test_dump_with_rubygems_yaml
548548

549549
assert_equal("---\n:foo: \"bar\"\n", actual)
550550
end
551+
552+
def test_handle_comment
553+
yaml = <<~YAML
554+
---
555+
:foo: bar # buzz
556+
YAML
557+
558+
actual = Gem::ConfigFile.load_with_rubygems_config_hash(yaml)
559+
assert_equal("bar", actual[:foo])
560+
end
551561
end

0 commit comments

Comments
 (0)