aboutsummaryrefslogtreecommitdiffstats
path: root/actionview/test
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2016-02-18 15:06:41 -0800
committerAaron Patterson <aaron.patterson@gmail.com>2016-02-18 15:06:41 -0800
commit5ae91da11990258302fbc879cd993f7eea925caa (patch)
treea1ab97a5cdba4959d3d217af8019b2396a2d6550 /actionview/test
parent0eed740fd84211221cc2465219f69d970867b515 (diff)
downloadrails-5ae91da11990258302fbc879cd993f7eea925caa.tar.gz
rails-5ae91da11990258302fbc879cd993f7eea925caa.tar.bz2
rails-5ae91da11990258302fbc879cd993f7eea925caa.zip
push injected dependencies up to the `digest` method
Only the root node has injected dependencies, so we don't need to care about them at lower levels. This change pushes the injected dependencies up to where the user passed them in.
Diffstat (limited to 'actionview/test')
-rw-r--r--actionview/test/template/digestor_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/actionview/test/template/digestor_test.rb b/actionview/test/template/digestor_test.rb
index 2f43ef4bfb..1bab615b29 100644
--- a/actionview/test/template/digestor_test.rb
+++ b/actionview/test/template/digestor_test.rb
@@ -321,12 +321,12 @@ class TemplateDigestorTest < ActionView::TestCase
end
def dependencies(template_name)
- tree = ActionView::Digestor.tree(template_name, finder, [])
+ tree = ActionView::Digestor.tree(template_name, finder)
tree.children.map(&:name)
end
def nested_dependencies(template_name)
- tree = ActionView::Digestor.tree(template_name, finder, [])
+ tree = ActionView::Digestor.tree(template_name, finder)
tree.children.map(&:to_dep_map)
end