diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2019-02-25 16:39:13 -0800 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2019-02-25 16:39:13 -0800 |
commit | 3a8d5dac9aa82d9d775c04d70230a2e0b404e162 (patch) | |
tree | 227c4f23fb478c27f0949f40c5de73d25c8aa00a /actionview/test | |
parent | 9a343d148b96874a231b87906c9d6499b5e0b64a (diff) | |
download | rails-3a8d5dac9aa82d9d775c04d70230a2e0b404e162.tar.gz rails-3a8d5dac9aa82d9d775c04d70230a2e0b404e162.tar.bz2 rails-3a8d5dac9aa82d9d775c04d70230a2e0b404e162.zip |
Expand key word args for ActionView::Template
Diffstat (limited to 'actionview/test')
-rw-r--r-- | actionview/test/template/template_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionview/test/template/template_test.rb b/actionview/test/template/template_test.rb index 5a24aea173..71fb99115b 100644 --- a/actionview/test/template/template_test.rb +++ b/actionview/test/template/template_test.rb @@ -59,7 +59,7 @@ class TestERBTemplate < ActiveSupport::TestCase def new_template(body = "<%= hello %>", details = {}) details = { format: :html, locals: [] }.merge details - ActionView::Template.new(body.dup, "hello template", details.fetch(:handler) { ERBHandler }, { virtual_path: "hello" }.merge!(details)) + ActionView::Template.new(body.dup, "hello template", details.delete(:handler) || ERBHandler, { virtual_path: "hello" }.merge!(details)) end def render(locals = {}) |