diff options
author | Kasper Timm Hansen <kaspth@gmail.com> | 2019-04-04 16:53:30 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-04 16:53:30 +0200 |
commit | 4c4cc7e396715e807ce49fbf42caec4384ad026f (patch) | |
tree | 5bf172f3aa9b927411850ee012fa4477cc9b9c72 | |
parent | fd81e83be7a6fcaa34467ff3d01ab6f66c922d6c (diff) | |
parent | 6a4bf486c3ec7f09d517fffba5c23f53e53a39d9 (diff) | |
download | rails-4c4cc7e396715e807ce49fbf42caec4384ad026f.tar.gz rails-4c4cc7e396715e807ce49fbf42caec4384ad026f.tar.bz2 rails-4c4cc7e396715e807ce49fbf42caec4384ad026f.zip |
Merge pull request #35856 from prathamesh-sonpatki/fix-dep-warning
Fix deprecation warning about variants and formats
-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 |