aboutsummaryrefslogtreecommitdiffstats
path: root/actionview/test
diff options
context:
space:
mode:
authorRafael França <rafaelmfranca@gmail.com>2019-03-26 18:30:25 -0400
committerGitHub <noreply@github.com>2019-03-26 18:30:25 -0400
commit2cf39747123a3a666264ba58401453b66b382b9c (patch)
tree6feef01629119fa530e52ac54eee3960d0de82df /actionview/test
parentc0f29ab75ee7ce810c0970f359a54037ee84adc3 (diff)
parent573e361a3ccb2cc716ed028d66da8af144bc0db2 (diff)
downloadrails-2cf39747123a3a666264ba58401453b66b382b9c.tar.gz
rails-2cf39747123a3a666264ba58401453b66b382b9c.tar.bz2
rails-2cf39747123a3a666264ba58401453b66b382b9c.zip
Merge pull request #35760 from jhawthorn/deprecate_custom_resolver_patterns
Deprecate custom patterns for PathResolver
Diffstat (limited to 'actionview/test')
-rw-r--r--actionview/test/template/resolver_patterns_test.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/actionview/test/template/resolver_patterns_test.rb b/actionview/test/template/resolver_patterns_test.rb
index 8122de779f..22815c8dbe 100644
--- a/actionview/test/template/resolver_patterns_test.rb
+++ b/actionview/test/template/resolver_patterns_test.rb
@@ -6,7 +6,10 @@ class ResolverPatternsTest < ActiveSupport::TestCase
def setup
path = File.expand_path("../fixtures", __dir__)
pattern = ":prefix/{:formats/,}:action{.:formats,}{+:variants,}{.:handlers,}"
- @resolver = ActionView::FileSystemResolver.new(path, pattern)
+
+ assert_deprecated do
+ @resolver = ActionView::FileSystemResolver.new(path, pattern)
+ end
end
def test_should_return_empty_list_for_unknown_path