diff options
author | Prathamesh Sonpatki <csonpatki@gmail.com> | 2019-04-04 19:29:27 +0530 |
---|---|---|
committer | Prathamesh Sonpatki <csonpatki@gmail.com> | 2019-04-04 19:29:27 +0530 |
commit | 6a4bf486c3ec7f09d517fffba5c23f53e53a39d9 (patch) | |
tree | 5bf172f3aa9b927411850ee012fa4477cc9b9c72 /actionview/test | |
parent | fd81e83be7a6fcaa34467ff3d01ab6f66c922d6c (diff) | |
download | rails-6a4bf486c3ec7f09d517fffba5c23f53e53a39d9.tar.gz rails-6a4bf486c3ec7f09d517fffba5c23f53e53a39d9.tar.bz2 rails-6a4bf486c3ec7f09d517fffba5c23f53e53a39d9.zip |
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`.
Diffstat (limited to 'actionview/test')
-rw-r--r-- | actionview/test/template/testing/fixture_resolver_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/actionview/test/template/testing/fixture_resolver_test.rb b/actionview/test/template/testing/fixture_resolver_test.rb index a90440574e..6d0317e0c9 100644 --- a/actionview/test/template/testing/fixture_resolver_test.rb +++ b/actionview/test/template/testing/fixture_resolver_test.rb @@ -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 |