Skip to content

Commit cbf0523

Browse files
committed
config: add a test for pair types as well
1 parent db918c0 commit cbf0523

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

test/config_test.rb

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,14 @@ def test_each_key_is_a_string
5050
end
5151
end
5252

53+
def test_each_pair_is_pairs
54+
config = @repo.config
55+
config.each_pair do |key, value|
56+
assert key.is_a?(String)
57+
assert value.is_a?(String)
58+
end
59+
end
60+
5361
def test_transaction
5462
config = Rugged::Config.new(File.join(@repo.path, 'config'))
5563
config['section.name'] = 'value'

0 commit comments

Comments
 (0)