diff options
author | kenta-s <knt01222@gmail.com> | 2017-01-24 08:40:37 +0900 |
---|---|---|
committer | kenta-s <knt01222@gmail.com> | 2017-01-24 08:40:37 +0900 |
commit | c32d715a3311943810d271163ff9bf10206687f3 (patch) | |
tree | 892ba679740852832d1def7820e6fefffdd4d07a /actionview/test | |
parent | c8c565e0b150065d510e5e086bd9b218a92fbfa9 (diff) | |
download | rails-c32d715a3311943810d271163ff9bf10206687f3.tar.gz rails-c32d715a3311943810d271163ff9bf10206687f3.tar.bz2 rails-c32d715a3311943810d271163ff9bf10206687f3.zip |
Get neglected 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 d189b2aa87..7c5a53b98b 100644 --- a/actionview/test/template/render_test.rb +++ b/actionview/test/template/render_test.rb @@ -393,8 +393,7 @@ module RenderTestCases assert_equal :partial_name_local_variable, exception.cause.name end - # TODO: The reason for this test is unclear, improve documentation - def test_render_partial_and_fallback_to_layout + def test_render_partial_with_no_block_given_to_yield assert_equal "Before (Josh)\n\nAfter", @view.render(partial: "test/layout_for_partial", locals: { name: "Josh" }) end |