From 2b4e7a784e57736d684611d8c123b78539248587 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafael=20Mendon=C3=A7a=20Fran=C3=A7a?= Date: Mon, 27 Feb 2012 09:54:06 -0300 Subject: Add a new line after the textarea opening tag. Closes #393 --- actionpack/test/template/form_helper_test.rb | 72 ++++++++++++++-------------- 1 file changed, 36 insertions(+), 36 deletions(-) (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 6e26fe752e..4dae5479d6 100644 --- a/actionpack/test/template/form_helper_test.rb +++ b/actionpack/test/template/form_helper_test.rb @@ -441,7 +441,7 @@ class FormHelperTest < ActionView::TestCase def test_text_area assert_dom_equal( - '', + %{}, text_area("post", "body") ) end @@ -449,14 +449,14 @@ class FormHelperTest < ActionView::TestCase def test_text_area_with_escapes @post.body = "Back to the hill and over it again!" assert_dom_equal( - '', + %{}, text_area("post", "body") ) end def test_text_area_with_alternate_value assert_dom_equal( - '', + %{}, text_area("post", "body", :value => 'Testing alternate values.') ) end @@ -464,14 +464,14 @@ class FormHelperTest < ActionView::TestCase def test_text_area_with_html_entities @post.body = "The HTML Entity for & is &" assert_dom_equal( - '', + %{}, text_area("post", "body") ) end def test_text_area_with_size_option assert_dom_equal( - '', + %{}, text_area("post", "body", :size => "183x820") ) end @@ -515,7 +515,7 @@ class FormHelperTest < ActionView::TestCase '', text_field("post", "title", "name" => "dont guess") ) assert_dom_equal( - '', + %{}, text_area("post", "body", "name" => "really!") ) assert_dom_equal( @@ -535,7 +535,7 @@ class FormHelperTest < ActionView::TestCase '', text_field("post", "title", "id" => "dont guess") ) assert_dom_equal( - '', + %{}, text_area("post", "body", "id" => "really!") ) assert_dom_equal( @@ -555,7 +555,7 @@ class FormHelperTest < ActionView::TestCase '', text_field("post", "title", "id" => nil) ) assert_dom_equal( - '', + %{}, text_area("post", "body", "id" => nil) ) assert_dom_equal( @@ -586,7 +586,7 @@ class FormHelperTest < ActionView::TestCase text_field("post", "title", "index" => 5) ) assert_dom_equal( - '', + %{}, text_area("post", "body", "index" => 5) ) assert_dom_equal( @@ -613,7 +613,7 @@ class FormHelperTest < ActionView::TestCase text_field("post", "title", "index" => 5, 'id' => nil) ) assert_dom_equal( - '', + %{}, text_area("post", "body", "index" => 5, 'id' => nil) ) assert_dom_equal( @@ -644,7 +644,7 @@ class FormHelperTest < ActionView::TestCase "", text_field("post[]","title") ) assert_dom_equal( - "", + "", text_area("post[]", "body") ) assert_dom_equal( @@ -652,7 +652,7 @@ class FormHelperTest < ActionView::TestCase check_box("post[]", "secret") ) assert_dom_equal( -"", + "", radio_button("post[]", "title", "Hello World") ) assert_dom_equal("", @@ -667,7 +667,7 @@ class FormHelperTest < ActionView::TestCase text_field("post[]","title", :id => nil) ) assert_dom_equal( - "", + "", text_area("post[]", "body", :id => nil) ) assert_dom_equal( @@ -702,7 +702,7 @@ class FormHelperTest < ActionView::TestCase expected = whole_form("/posts/123", "create-post" , "edit_post", :method => "put") do "" + "" + - "" + + "" + "" + "" + "" + @@ -781,7 +781,7 @@ class FormHelperTest < ActionView::TestCase expected = whole_form("/posts/123", "create-post", "edit_other_name", :method => "put") do "" + "" + - "" + + "" + "" + "" + "" @@ -799,7 +799,7 @@ class FormHelperTest < ActionView::TestCase expected = whole_form("/", "create-post", "edit_post", "delete") do "" + - "" + + "" + "" + "" end @@ -816,7 +816,7 @@ class FormHelperTest < ActionView::TestCase expected = whole_form("/", "create-post", "edit_post", "delete") do "" + - "" + + "" + "" + "" end @@ -847,7 +847,7 @@ class FormHelperTest < ActionView::TestCase expected = whole_form("/", "create-post", "edit_post", :method => "put", :remote => true) do "" + - "" + + "" + "" + "" end @@ -864,7 +864,7 @@ class FormHelperTest < ActionView::TestCase expected = whole_form("/", "create-post", "edit_post", :method => "put", :remote => true) do "" + - "" + + "" + "" + "" end @@ -882,7 +882,7 @@ class FormHelperTest < ActionView::TestCase expected = whole_form("/posts", 'new_post', 'new_post', :remote => true) do "" + - "" + + "" + "" + "" end @@ -899,7 +899,7 @@ class FormHelperTest < ActionView::TestCase expected = whole_form("/", "create-post") do "" + - "" + + "" + "" + "" end @@ -918,7 +918,7 @@ class FormHelperTest < ActionView::TestCase expected = whole_form('/posts/123', 'edit_post[]', 'edit_post[]', 'put') do "" + "" + - "" + + "" + "" + "" end @@ -935,7 +935,7 @@ class FormHelperTest < ActionView::TestCase expected = whole_form('/posts/123', 'edit_post[]', 'edit_post[]', 'put') do "" + - "" + + "" + "" + "" end @@ -952,7 +952,7 @@ class FormHelperTest < ActionView::TestCase expected = whole_form('/posts/123', 'namespace_edit_post_123', 'edit_post', 'put') do "" + - "" + + "" + "" + "" end @@ -1012,7 +1012,7 @@ class FormHelperTest < ActionView::TestCase expected = whole_form('/posts/123', 'namespace_edit_post_123', 'edit_post', 'put') do "" + - "" + + "" + "" end @@ -1746,7 +1746,7 @@ class FormHelperTest < ActionView::TestCase expected = "" + - "" + + "" + "" + "" @@ -1762,7 +1762,7 @@ class FormHelperTest < ActionView::TestCase expected = "" + - "" + + "" + "" + "" @@ -1778,7 +1778,7 @@ class FormHelperTest < ActionView::TestCase expected = "" + - "" + + "" + "" + "" @@ -1794,7 +1794,7 @@ class FormHelperTest < ActionView::TestCase expected = "" + - "" + + "" + "" + "" @@ -1810,7 +1810,7 @@ class FormHelperTest < ActionView::TestCase expected = "" + - "" + + "" + "" + "" @@ -1826,7 +1826,7 @@ class FormHelperTest < ActionView::TestCase expected = "" + - "" + + "" + "" + "" @@ -1871,7 +1871,7 @@ class FormHelperTest < ActionView::TestCase expected = whole_form('/posts/123', 'create-post', 'edit_post', :method => 'put') do "" + - "" + + "" + "" + "" end @@ -1891,7 +1891,7 @@ class FormHelperTest < ActionView::TestCase expected = whole_form('/posts/123', 'create-post', 'edit_post', :method => 'put') do "" + - "" + + "" + "" end @@ -1931,7 +1931,7 @@ class FormHelperTest < ActionView::TestCase expected = whole_form('/posts/123', 'edit_post_123', 'edit_post', :method => 'put') do "
" + - "
" + + "
" + "
" end @@ -1981,7 +1981,7 @@ class FormHelperTest < ActionView::TestCase expected = whole_form('/posts/123', 'edit_post_123', 'edit_post', :method => 'put') do "
" + - "
" + + "
" + "
" end @@ -1999,7 +1999,7 @@ class FormHelperTest < ActionView::TestCase expected = "
" + - "
" + + "
" + "
" assert_dom_equal expected, output_buffer -- cgit v1.2.3