diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2016-02-18 15:02:10 -0800 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2016-02-18 15:02:10 -0800 |
commit | 0eed740fd84211221cc2465219f69d970867b515 (patch) | |
tree | 05b2eabcf27886e943ce50f08b85aa6482a80615 /actionview/test | |
parent | 8bb52f929f36994fd5b42295d24b627f132fe318 (diff) | |
download | rails-0eed740fd84211221cc2465219f69d970867b515.tar.gz rails-0eed740fd84211221cc2465219f69d970867b515.tar.bz2 rails-0eed740fd84211221cc2465219f69d970867b515.zip |
use the class level digest method for calculating the digest
Diffstat (limited to 'actionview/test')
-rw-r--r-- | actionview/test/template/digestor_test.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/actionview/test/template/digestor_test.rb b/actionview/test/template/digestor_test.rb index 56bc967c83..2f43ef4bfb 100644 --- a/actionview/test/template/digestor_test.rb +++ b/actionview/test/template/digestor_test.rb @@ -317,9 +317,7 @@ class TemplateDigestorTest < ActionView::TestCase options = options.dup finder.variants = options.delete(:variants) || [] - - node = ActionView::Digestor.tree(template_name, finder, options[:dependencies] || []) - node.digest(finder) + ActionView::Digestor.digest(name: template_name, finder: finder, dependencies: (options[:dependencies] || [])) end def dependencies(template_name) |