From f0a5d325375d9f453d4cc6c6bf555561e52d4ea7 Mon Sep 17 00:00:00 2001 From: Vasiliy Ermolovich Date: Thu, 23 Feb 2012 22:04:09 +0300 Subject: correct fetching :name option in form fields --- actionpack/test/template/form_helper_test.rb | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'actionpack/test/template') diff --git a/actionpack/test/template/form_helper_test.rb b/actionpack/test/template/form_helper_test.rb index e4cb7e02a0..61d728ce66 100644 --- a/actionpack/test/template/form_helper_test.rb +++ b/actionpack/test/template/form_helper_test.rb @@ -305,6 +305,11 @@ class FormHelperTest < ActionView::TestCase assert_dom_equal expected, text_field("post", "title", :value => nil) end + def test_text_field_with_nil_name + expected = '' + assert_dom_equal expected, text_field("post", "title", :name => nil) + end + def test_text_field_doesnt_change_param_values object_name = 'post[]' expected = '' -- cgit v1.2.3