提交 d6909af3 编写于 作者: Y Yves Senn

Merge pull request #18569 from yuki24/eliminate-warning-in-action-view-test

Eliminate a ruby warning in a test in Action View
......@@ -910,7 +910,11 @@ def test_inputs_use_before_type_cast_to_retain_information_from_validations_like
end
def test_inputs_dont_use_before_type_cast_when_value_did_not_come_from_user
def @post.id_came_from_user?; false; end
class << @post
undef id_came_from_user?
def id_came_from_user?; false; end
end
assert_dom_equal(
%{<textarea id="post_id" name="post[id]">\n0</textarea>},
text_area("post", "id")
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册