aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKasper Timm Hansen <kaspth@gmail.com>2019-04-04 16:53:30 +0200
committerGitHub <noreply@github.com>2019-04-04 16:53:30 +0200
commit4c4cc7e396715e807ce49fbf42caec4384ad026f (patch)
tree5bf172f3aa9b927411850ee012fa4477cc9b9c72
parentfd81e83be7a6fcaa34467ff3d01ab6f66c922d6c (diff)
parent6a4bf486c3ec7f09d517fffba5c23f53e53a39d9 (diff)
downloadrails-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.rb4
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