diff options
author | Kasper Timm Hansen <kaspth@gmail.com> | 2017-02-11 21:47:13 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-11 21:47:13 +0100 |
commit | 40ae9a916f8466b19250f12923b3c26643b8e6b9 (patch) | |
tree | b6ff299d004d48790e8859aa089f5f2ff918fd5d /actionview/test | |
parent | 6401e03ef6285a93588a162e651e0b15fcb60a19 (diff) | |
parent | 3ea926b86a209d67c210fc105cadcad73984e3e0 (diff) | |
download | rails-40ae9a916f8466b19250f12923b3c26643b8e6b9.tar.gz rails-40ae9a916f8466b19250f12923b3c26643b8e6b9.tar.bz2 rails-40ae9a916f8466b19250f12923b3c26643b8e6b9.zip |
Merge pull request #27870 from kenta-s/get-todo-done-in-render_test
Get TODO done in `render_test`
Diffstat (limited to 'actionview/test')
-rw-r--r-- | actionview/test/template/render_test.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/actionview/test/template/render_test.rb b/actionview/test/template/render_test.rb index fbe0e555bd..412948719c 100644 --- a/actionview/test/template/render_test.rb +++ b/actionview/test/template/render_test.rb @@ -406,8 +406,7 @@ module RenderTestCases assert_equal "Before (Josh)\n\nAfter", @view.render(partial: "test/layout_for_partial", locals: { name: "Josh" }) end - # TODO: The reason for this test is unclear, improve documentation - def test_render_missing_xml_partial_and_raise_missing_template + def test_render_partial_with_non_existent_format_and_raise_missing_template @view.formats = [:xml] assert_raises(ActionView::MissingTemplate) { @view.render(partial: "test/layout_for_partial") } ensure |