Skip to content

Commit e7d8237

Browse files
committed
Fix test for ruby 1.8
1 parent b6e7b57 commit e7d8237

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/test_rdoc_options.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,11 @@ class << coder; alias add []=; end
5757

5858
@options.encode_with coder
5959

60+
encoding = Object.const_defined?(:Encoding) ? 'UTF-8' : nil
61+
6062
expected = {
6163
'charset' => 'UTF-8',
62-
'encoding' => 'UTF-8',
64+
'encoding' => encoding,
6365
'exclude' => [],
6466
'hyperlink_all' => false,
6567
'line_numbers' => false,

0 commit comments

Comments
 (0)