提交 8b4ecbeb 编写于 作者: R Rafael Mendonça França

Merge pull request #6388 from kennyj/fix_warning_20120519

Fix warning: possibly useless use of % in void context
......@@ -465,7 +465,7 @@ def to_s
test "Concatting with % doesn't modify a string" do
@other_string = ["<p>", "<b>", "<h1>"]
"%s %s %s".html_safe % @other_string
_ = "%s %s %s".html_safe % @other_string
assert_equal ["<p>", "<b>", "<h1>"], @other_string
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册