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

Merge pull request #35856 from prathamesh-sonpatki/fix-dep-warning

Fix deprecation warning about variants and formats
...@@ -24,7 +24,7 @@ def test_should_match_templates_with_variants ...@@ -24,7 +24,7 @@ def test_should_match_templates_with_variants
assert_equal 1, templates.size, "expected one template" assert_equal 1, templates.size, "expected one template"
assert_equal "this text", templates.first.source assert_equal "this text", templates.first.source
assert_equal "arbitrary/path", templates.first.virtual_path assert_equal "arbitrary/path", templates.first.virtual_path
assert_equal [:html], templates.first.formats assert_equal :html, templates.first.format
assert_equal ["variant"], templates.first.variants assert_equal "variant", templates.first.variant
end end
end end
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册