diff options
author | Kasper Timm Hansen <kaspth@gmail.com> | 2017-06-07 21:18:04 +0200 |
---|---|---|
committer | Kasper Timm Hansen <kaspth@gmail.com> | 2017-06-07 21:18:06 +0200 |
commit | 379a0b42daf0d8e14130db7fd886d05d8d88e3f2 (patch) | |
tree | 5bd47319b76cdb4813c16b67209c3d1150741645 /actionview | |
parent | e732f29d33f1e856c4a10af694863420c9b79e67 (diff) | |
download | rails-379a0b42daf0d8e14130db7fd886d05d8d88e3f2.tar.gz rails-379a0b42daf0d8e14130db7fd886d05d8d88e3f2.tar.bz2 rails-379a0b42daf0d8e14130db7fd886d05d8d88e3f2.zip |
Don't support namespace in form_with.
form_with requires people to pass an id manually, so users can just
prefix their namespace right there.
Diffstat (limited to 'actionview')
-rw-r--r-- | actionview/test/template/form_helper/form_with_test.rb | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/actionview/test/template/form_helper/form_with_test.rb b/actionview/test/template/form_helper/form_with_test.rb index bff0643fb0..df580f0369 100644 --- a/actionview/test/template/form_helper/form_with_test.rb +++ b/actionview/test/template/form_helper/form_with_test.rb @@ -878,24 +878,6 @@ class FormWithActsLikeFormForTest < FormWithTest assert_dom_equal expected, output_buffer end - def test_form_with_with_namespace - skip "Do namespaces still make sense?" - form_for(@post, namespace: "namespace") do |f| - concat f.text_field(:title) - concat f.text_area(:body) - concat f.check_box(:secret) - end - - expected = whole_form("/posts/123", "namespace_edit_post_123", "edit_post", method: "patch") do - "<input name='post[title]' type='text' value='Hello World' />" \ - "<textarea name='post[body]'>\nBack to the hill and over it again!</textarea>" \ - "<input name='post[secret]' type='hidden' value='0' />" \ - "<input name='post[secret]' checked='checked' type='checkbox' value='1' />" - end - - assert_dom_equal expected, output_buffer - end - def test_submit_with_object_as_new_record_and_locale_strings with_locale :submit do @post.persisted = false |