diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2019-02-25 11:53:55 -0800 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2019-02-25 12:26:25 -0800 |
commit | 2f128a82e66f181577ff77d83d4ca02659aa8a8d (patch) | |
tree | f41df8766f0c46a4e55f404fb8450821feafb0e2 /actionpack | |
parent | 5330a342852147ecd65a16f83bc51e688c8bb9eb (diff) | |
download | rails-2f128a82e66f181577ff77d83d4ca02659aa8a8d.tar.gz rails-2f128a82e66f181577ff77d83d4ca02659aa8a8d.tar.bz2 rails-2f128a82e66f181577ff77d83d4ca02659aa8a8d.zip |
Always pass a format to the ActionView::Template constructor
This means we can eliminate nil checks and remove some mutations from
the `decorate` method.
Diffstat (limited to 'actionpack')
-rw-r--r-- | actionpack/test/dispatch/debug_exceptions_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/test/dispatch/debug_exceptions_test.rb b/actionpack/test/dispatch/debug_exceptions_test.rb index 6914fb66f9..c33b0e1c14 100644 --- a/actionpack/test/dispatch/debug_exceptions_test.rb +++ b/actionpack/test/dispatch/debug_exceptions_test.rb @@ -39,7 +39,7 @@ class DebugExceptionsTest < ActionDispatch::IntegrationTest def call(env) env["action_dispatch.show_detailed_exceptions"] = @detailed req = ActionDispatch::Request.new(env) - template = ActionView::Template.new(File.read(__FILE__), __FILE__, ActionView::Template::Handlers::Raw.new, {}) + template = ActionView::Template.new(File.read(__FILE__), __FILE__, ActionView::Template::Handlers::Raw.new, format: :html) case req.path when "/pass" |