diff options
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 |