Skip to content

Commit 6a4bf48

Browse files
Fix deprecation warning about variants and formats
- After rails#35408 and rails#35406, the `formats` and `variants` methods are deprecated in favor of `format` and `variant`.
1 parent fd81e83 commit 6a4bf48

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

actionview/test/template/testing/fixture_resolver_test.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def test_should_match_templates_with_variants
2424
assert_equal 1, templates.size, "expected one template"
2525
assert_equal "this text", templates.first.source
2626
assert_equal "arbitrary/path", templates.first.virtual_path
27-
assert_equal [:html], templates.first.formats
28-
assert_equal ["variant"], templates.first.variants
27+
assert_equal :html, templates.first.format
28+
assert_equal "variant", templates.first.variant
2929
end
3030
end

0 commit comments

Comments
 (0)