aboutsummaryrefslogtreecommitdiffstats
path: root/actionview/test
diff options
context:
space:
mode:
authorArthur Nogueira Neves <github@arthurnn.com>2017-01-31 14:57:17 -0500
committerGitHub <noreply@github.com>2017-01-31 14:57:17 -0500
commitaa86cb62aee4d73a9cad8fcbcc96c7b6baab18ba (patch)
tree45dbdb8156b46363260369f9318cf7dfa8942d92 /actionview/test
parent1e1866948e6d15c84f4fc5912eb326607b82a3fb (diff)
parentc32d715a3311943810d271163ff9bf10206687f3 (diff)
downloadrails-aa86cb62aee4d73a9cad8fcbcc96c7b6baab18ba.tar.gz
rails-aa86cb62aee4d73a9cad8fcbcc96c7b6baab18ba.tar.bz2
rails-aa86cb62aee4d73a9cad8fcbcc96c7b6baab18ba.zip
Merge pull request #27758 from kenta-s/neglected-todo-in-render_test
Get neglected TODO done in render_test
Diffstat (limited to 'actionview/test')
-rw-r--r--actionview/test/template/render_test.rb3
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