aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/template/active_model_helper_test.rb
diff options
context:
space:
mode:
authorJosé Valim <jose.valim@gmail.com>2012-03-11 15:04:23 -0700
committerJosé Valim <jose.valim@gmail.com>2012-03-11 15:04:23 -0700
commit6c0d5a19a4e97be3d004997f6547ec19e6a22363 (patch)
treea1a93cce7901e3a2ef9ac823523023f99eb5ae9c /actionpack/test/template/active_model_helper_test.rb
parentd6ec3f0898fb234e5cd95747d7d20bf45b33d890 (diff)
parentf12f071ece7c15ec91d96dd92e897eb68d4d355a (diff)
downloadrails-6c0d5a19a4e97be3d004997f6547ec19e6a22363.tar.gz
rails-6c0d5a19a4e97be3d004997f6547ec19e6a22363.tar.bz2
rails-6c0d5a19a4e97be3d004997f6547ec19e6a22363.zip
Merge pull request #5366 from parndt/fix_issue_5324
Fixes #5324 by removing default size options from input:text and default cols and rows options from textarea.
Diffstat (limited to 'actionpack/test/template/active_model_helper_test.rb')
-rw-r--r--actionpack/test/template/active_model_helper_test.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/actionpack/test/template/active_model_helper_test.rb b/actionpack/test/template/active_model_helper_test.rb
index 66a7bce71e..18468ee91a 100644
--- a/actionpack/test/template/active_model_helper_test.rb
+++ b/actionpack/test/template/active_model_helper_test.rb
@@ -29,14 +29,14 @@ class ActiveModelHelperTest < ActionView::TestCase
def test_text_area_with_errors
assert_dom_equal(
- %(<div class="field_with_errors"><textarea cols="40" id="post_body" name="post[body]" rows="20">\nBack to the hill and over it again!</textarea></div>),
+ %(<div class="field_with_errors"><textarea id="post_body" name="post[body]">\nBack to the hill and over it again!</textarea></div>),
text_area("post", "body")
)
end
def test_text_field_with_errors
assert_dom_equal(
- %(<div class="field_with_errors"><input id="post_author_name" name="post[author_name]" size="30" type="text" value="" /></div>),
+ %(<div class="field_with_errors"><input id="post_author_name" name="post[author_name]" type="text" value="" /></div>),
text_field("post", "author_name")
)
end
@@ -76,7 +76,7 @@ class ActiveModelHelperTest < ActionView::TestCase
end
assert_dom_equal(
- %(<div class="field_with_errors"><input id="post_author_name" name="post[author_name]" size="30" type="text" value="" /> <span class="error">can't be empty</span></div>),
+ %(<div class="field_with_errors"><input id="post_author_name" name="post[author_name]" type="text" value="" /> <span class="error">can't be empty</span></div>),
text_field("post", "author_name")
)
ensure