summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-02-09 00:47:42 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-02-09 00:47:42 +0000
commitacda9a6872c4b46be760605ad562658378da37dc (patch)
treef0d067a42264fda8a785b8c23ffa30b68981b6e3 /test
parentcf679526021fd66798ade296d74822592ba7ed8e (diff)
* test/rdoc/test_rdoc_encoding.rb: remove unnecessary (and wrong)
platform-dependent hacks. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30829 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r--test/rdoc/test_rdoc_encoding.rb12
1 files changed, 0 insertions, 12 deletions
diff --git a/test/rdoc/test_rdoc_encoding.rb b/test/rdoc/test_rdoc_encoding.rb
index f6c113affc..178f805129 100644
--- a/test/rdoc/test_rdoc_encoding.rb
+++ b/test/rdoc/test_rdoc_encoding.rb
@@ -26,9 +26,6 @@ class TestRDocEncoding < MiniTest::Unit::TestCase
@tempfile.write expected
@tempfile.flush
- # FIXME 1.9 fix on windoze
- expected.gsub!("\n", "\r\n") if RUBY_VERSION =~ /^1.9/ && RUBY_PLATFORM =~ /mswin|mingw/
-
contents = RDoc::Encoding.read_file @tempfile.path, Encoding::UTF_8
assert_equal "hi everybody", contents
assert_equal Encoding::UTF_8, contents.encoding
@@ -55,9 +52,6 @@ class TestRDocEncoding < MiniTest::Unit::TestCase
@tempfile.write "# coding: utf-8\n\317\200" # pi
@tempfile.flush
- # FIXME 1.9 fix on windoze
- expected.gsub!("\n", "\r\n") if RUBY_VERSION =~ /^1.9/ && RUBY_PLATFORM =~ /mswin|mingw/
-
contents = :junk
_, err = capture_io do
@@ -78,9 +72,6 @@ class TestRDocEncoding < MiniTest::Unit::TestCase
@tempfile.write expected
@tempfile.flush
- # FIXME 1.9 fix on windoze
- expected.gsub!("\n", "\r\n") if RUBY_VERSION =~ /^1.9/ && RUBY_PLATFORM =~ /win32|mingw32/
-
contents = RDoc::Encoding.read_file @tempfile.path, Encoding::UTF_8
assert_equal "hi everybody", contents
assert_equal Encoding::UTF_8, contents.encoding
@@ -92,9 +83,6 @@ class TestRDocEncoding < MiniTest::Unit::TestCase
@tempfile.write "# coding: utf-8\n\317\200" # pi
@tempfile.flush
- # FIXME 1.9 fix on windoze
- expected.gsub!("\n", "\r\n") if RUBY_VERSION =~ /^1.9/ && RUBY_PLATFORM =~ /mswin|mingw/
-
contents = RDoc::Encoding.read_file @tempfile.path, Encoding::US_ASCII, true
assert_equal '?', contents