diff options
author | Ufuk Kayserilioglu <ufuk@paralaus.com> | 2019-01-24 22:08:02 +0200 |
---|---|---|
committer | Ufuk Kayserilioglu <ufuk@paralaus.com> | 2019-01-24 22:15:46 +0200 |
commit | d5fcb5b9ad4ecb271834ee5a689a1ead40290086 (patch) | |
tree | ba7f6d32976809b8bddc4ff89a2d210c22fc75fe /actionview/test | |
parent | c1e949e9e618f75dc446ffa584c3b441c48714b1 (diff) | |
download | rails-d5fcb5b9ad4ecb271834ee5a689a1ead40290086.tar.gz rails-d5fcb5b9ad4ecb271834ee5a689a1ead40290086.tar.bz2 rails-d5fcb5b9ad4ecb271834ee5a689a1ead40290086.zip |
Revert "Allow usage of strings as locals for partial renderer"
Diffstat (limited to 'actionview/test')
-rw-r--r-- | actionview/test/actionpack/controller/render_test.rb | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/actionview/test/actionpack/controller/render_test.rb b/actionview/test/actionpack/controller/render_test.rb index 204903c60c..02df84da8e 100644 --- a/actionview/test/actionpack/controller/render_test.rb +++ b/actionview/test/actionpack/controller/render_test.rb @@ -485,10 +485,6 @@ class TestController < ActionController::Base render partial: "customer", locals: { customer: Customer.new("david") } end - def partial_with_string_locals - render partial: "customer", locals: { "customer" => Customer.new("david") } - end - def partial_with_form_builder render partial: ActionView::Helpers::FormBuilder.new(:post, nil, view_context, {}) end @@ -691,7 +687,6 @@ class RenderTest < ActionController::TestCase get :partial_with_locals, to: "test#partial_with_locals" get :partial_with_nested_object, to: "test#partial_with_nested_object" get :partial_with_nested_object_shorthand, to: "test#partial_with_nested_object_shorthand" - get :partial_with_string_locals, to: "test#partial_with_string_locals" get :partials_list, to: "test#partials_list" get :render_action_hello_world, to: "test#render_action_hello_world" get :render_action_hello_world_as_string, to: "test#render_action_hello_world_as_string" @@ -1292,11 +1287,6 @@ class RenderTest < ActionController::TestCase assert_equal "Hello: david", @response.body end - def test_partial_with_string_locals - get :partial_with_string_locals - assert_equal "Hello: david", @response.body - end - def test_partial_with_form_builder get :partial_with_form_builder assert_equal "<label for=\"post_title\">Title</label>\n", @response.body |