未验证 提交 f978ddb8 编写于 作者: K Kasper Timm Hansen 提交者: GitHub

Merge pull request #33588 from bogdanvlviv/follow-up-31503

Fix test failure
......@@ -142,7 +142,7 @@ def @contact.favorite_quote; "Constraints are liberating"; end
assert_kind_of Hash, json
assert_kind_of Hash, json["contact"]
%w(name age created_at awesome preferences).each do |field|
assert_equal @contact.send(field), json["contact"][field]
assert_equal @contact.send(field).as_json, json["contact"][field]
end
ensure
Contact.include_root_in_json = original_include_root_in_json
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册