diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2016-02-12 14:30:13 -0800 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2016-02-12 15:40:16 -0800 |
commit | ac9d32bf90ce3d2205be02b58743676868286123 (patch) | |
tree | bf682a9c4da66d5eb8d02a2f292453a91cf6bc8b /actionview/test | |
parent | 6e8d70e697cc0e90429cecc89dfe7c38cfb117ee (diff) | |
download | rails-ac9d32bf90ce3d2205be02b58743676868286123.tar.gz rails-ac9d32bf90ce3d2205be02b58743676868286123.tar.bz2 rails-ac9d32bf90ce3d2205be02b58743676868286123.zip |
push kwargs up to the user facing API
this lets us leverage Ruby's kwarg handling (exceptions for missing
params, etc) ASAP which allows us to skip active support method calls
and make sure the exception stack is closer to where the user called the
methods.
Diffstat (limited to 'actionview/test')
-rw-r--r-- | actionview/test/template/digestor_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/actionview/test/template/digestor_test.rb b/actionview/test/template/digestor_test.rb index ea86535b2a..bfab97cf1e 100644 --- a/actionview/test/template/digestor_test.rb +++ b/actionview/test/template/digestor_test.rb @@ -308,11 +308,11 @@ class TemplateDigestorTest < ActionView::TestCase end def dependencies(template_name) - ActionView::Digestor.new({ name: template_name, finder: finder }).dependencies + ActionView::Digestor.new(template_name, finder).dependencies end def nested_dependencies(template_name) - ActionView::Digestor.new({ name: template_name, finder: finder }).nested_dependencies + ActionView::Digestor.new(template_name, finder).nested_dependencies end def finder |