提交 3d2bda96 编写于 作者: A Arun Agrawal 提交者: Xavier Noria

magic comment test only if encoding_aware?.

上级 67d76f43
......@@ -14,9 +14,10 @@ def standard_dump
@stream.string
end
def test_magic_comment
skip "only test magic comments on 1.9" if RUBY_VERSION < '1.9'
assert_match "# encoding: #{@stream.external_encoding.name}", standard_dump
if "string".encoding_aware?
def test_magic_comment
assert_match "# encoding: #{@stream.external_encoding.name}", standard_dump
end
end
def test_schema_dump
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册