From 2835ec6134b1e5b706824b568dfaba24672b7409 Mon Sep 17 00:00:00 2001 From: Stephen Celis Date: Tue, 5 Jan 2010 08:32:00 -0600 Subject: Custom 'type' attribute support for text_field. [#3646 status:resolved] MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: José Valim --- actionpack/test/template/form_helper_test.rb | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'actionpack/test') diff --git a/actionpack/test/template/form_helper_test.rb b/actionpack/test/template/form_helper_test.rb index 7712883e9c..454b6159ab 100644 --- a/actionpack/test/template/form_helper_test.rb +++ b/actionpack/test/template/form_helper_test.rb @@ -201,6 +201,11 @@ class FormHelperTest < ActionView::TestCase hidden_field("post", "title", :value => "Something Else") end + def test_text_field_with_custom_type + assert_dom_equal '', + text_field("user", "email", :type => "email") + end + def test_check_box assert_dom_equal( '', -- cgit v1.2.3