From 73499158df05ed68fb9cf2679286a603db91f1ef Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Fri, 5 Jan 2007 04:09:38 +0000 Subject: Fixed that webrick would strip leading newlines and hang connection (closes #4156) [psross] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5847 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- actionpack/test/template/form_helper_test.rb | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'actionpack/test/template/form_helper_test.rb') diff --git a/actionpack/test/template/form_helper_test.rb b/actionpack/test/template/form_helper_test.rb index a7ceb6b30f..69aef4e5f1 100644 --- a/actionpack/test/template/form_helper_test.rb +++ b/actionpack/test/template/form_helper_test.rb @@ -64,6 +64,11 @@ class FormHelperTest < Test::Unit::TestCase assert_dom_equal expected, text_field("post", "title", :size => 35) end + def test_text_field_with_prefix + expected = '' + assert_dom_equal expected, text_field("post", "title", :size => 35, :prefix => :book) + end + def test_text_field_assuming_size expected = '' assert_dom_equal expected, text_field("post", "title", "maxlength" => 35) -- cgit v1.2.3