提交 11eaf1c1 编写于 作者: X Xavier Noria

fix RuboCop errors re \xFC

上级 bb1ecdcc
......@@ -80,7 +80,7 @@ def test_text_template_does_not_html_escape
end
def test_raw_template
@template = new_template("<%= hello %>", :handler => ActionView::Template::Handlers::Raw.new)
@template = new_template("<%= hello %>", handler: ActionView::Template::Handlers::Raw.new)
assert_equal "<%= hello %>", render
end
......@@ -189,7 +189,9 @@ def test_error_when_template_isnt_valid_utf8
@template = new_template("hello \xFCmlat", virtual_path: nil)
render
end
assert_match(/\xFC/, e.message)
# Hack: We write the regexp this way because the parser of RuboCop
# errs with /\xFC/.
assert_match(Regexp.new("\xFC"), e.message)
end
def with_external_encoding(encoding)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册