Skip to content

Commit a4c7001

Browse files
committed
Don't work around a ruby bug in the tests that's fixed in 1.9.3. Workaround for r31937 from ruby trunk
1 parent a6f6aa0 commit a4c7001

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/test_rdoc_markup_pre_process.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def test_include_file
4343
# FIXME 1.9 fix on windoze
4444
# preprocessor uses binread, so line endings are \r\n
4545
expected.gsub!("\n", "\r\n") if
46-
RUBY_VERSION =~ /^1.9/ && RUBY_PLATFORM =~ /mswin|mingw/
46+
RUBY_VERSION < "1.9.3" && RUBY_PLATFORM =~ /mswin|mingw/
4747

4848
assert_equal expected, content
4949
end
@@ -67,7 +67,7 @@ def test_include_file_encoding_incompatible
6767
# FIXME 1.9 fix on windoze
6868
# preprocessor uses binread, so line endings are \r\n
6969
expected.gsub!("\n", "\r\n") if
70-
RUBY_VERSION =~ /^1.9/ && RUBY_PLATFORM =~ /mswin|mingw/
70+
RUBY_VERSION < "1.9.3" && RUBY_PLATFORM =~ /mswin|mingw/
7171

7272
assert_equal expected, content
7373
end

0 commit comments

Comments
 (0)