Fix deprecation warning about variants and formats

- After https://github.com/rails/rails/pull/35408 and
  https://github.com/rails/rails/pull/35406, the `formats` and
  `variants` methods are deprecated in favor of `format` and `variant`.
This commit is contained in:
Prathamesh Sonpatki 2019-04-04 19:29:27 +05:30
parent fd81e83be7
commit 6a4bf486c3
No known key found for this signature in database
GPG Key ID: C1819D4BD8FFDDC4
1 changed files with 2 additions and 2 deletions

View File

@ -24,7 +24,7 @@ class FixtureResolverTest < ActiveSupport::TestCase
assert_equal 1, templates.size, "expected one template"
assert_equal "this text", templates.first.source
assert_equal "arbitrary/path", templates.first.virtual_path
assert_equal [:html], templates.first.formats
assert_equal ["variant"], templates.first.variants
assert_equal :html, templates.first.format
assert_equal "variant", templates.first.variant
end
end