diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2016-02-15 14:25:10 -0800 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2016-02-16 15:34:15 -0800 |
commit | c9593fc77f31f72bde56e2d370c6aee99fe3e46d (patch) | |
tree | 38d779cf2fcc56c3c5659d086ef179ccd62b53c8 /actionview/test | |
parent | ec8e0bc89ab71ed41b4e8d5234b5e09ba93480e9 (diff) | |
download | rails-c9593fc77f31f72bde56e2d370c6aee99fe3e46d.tar.gz rails-c9593fc77f31f72bde56e2d370c6aee99fe3e46d.tar.bz2 rails-c9593fc77f31f72bde56e2d370c6aee99fe3e46d.zip |
fix recursive templates
Diffstat (limited to 'actionview/test')
-rw-r--r-- | actionview/test/template/digestor_test.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/actionview/test/template/digestor_test.rb b/actionview/test/template/digestor_test.rb index 6ce06e8073..d2d4aec348 100644 --- a/actionview/test/template/digestor_test.rb +++ b/actionview/test/template/digestor_test.rb @@ -311,9 +311,10 @@ class TemplateDigestorTest < ActionView::TestCase finder.variants = options.delete(:variants) || [] - node = ActionView::Digestor.tree template_name, finder + node = ActionView::Digestor.tree(template_name, finder, options[:dependencies] || []) + y = node.digest x = ActionView::Digestor.digest({ name: template_name, finder: finder }.merge(options)) - assert_equal x, node.digest + assert_equal x, y x end |