From 6a4bf486c3ec7f09d517fffba5c23f53e53a39d9 Mon Sep 17 00:00:00 2001 From: Prathamesh Sonpatki Date: Thu, 4 Apr 2019 19:29:27 +0530 Subject: 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`. --- actionview/test/template/testing/fixture_resolver_test.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'actionview/test') 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 -- cgit v1.2.3