aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2005-04-10 15:11:15 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2005-04-10 15:11:15 +0000
commitac4b4701c0dc94375956f320545bff2ebe0ba832 (patch)
treea9c17bdfa9fd51eea0462b960a3dcad7fa935dd4 /actionpack/test
parent25d27b39ea3cb3343b1b83177551053691964e70 (diff)
downloadrails-ac4b4701c0dc94375956f320545bff2ebe0ba832.tar.gz
rails-ac4b4701c0dc94375956f320545bff2ebe0ba832.tar.bz2
rails-ac4b4701c0dc94375956f320545bff2ebe0ba832.zip
Fixed that radio buttons shouldn't have a default size attribute #1074 [hendrik@mans.de] Added ActionView::Helpers::InstanceTag::DEFAULT_RADIO_OPTIONS that contains a hash of default options for radio buttons #1074 [hendrik@mans.de]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1127 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/test')
-rw-r--r--actionpack/test/template/form_helper_test.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/actionpack/test/template/form_helper_test.rb b/actionpack/test/template/form_helper_test.rb
index db5195e272..3f8033af1d 100644
--- a/actionpack/test/template/form_helper_test.rb
+++ b/actionpack/test/template/form_helper_test.rb
@@ -79,10 +79,10 @@ class FormHelperTest < Test::Unit::TestCase
end
def test_radio_button
- assert_equal('<input checked="checked" id="post_title" name="post[title]" size="30" type="radio" value="Hello World" />',
+ assert_equal('<input checked="checked" id="post_title" name="post[title]" type="radio" value="Hello World" />',
radio_button("post", "title", "Hello World")
)
- assert_equal('<input id="post_title" name="post[title]" size="30" type="radio" value="Goodbye World" />',
+ assert_equal('<input id="post_title" name="post[title]" type="radio" value="Goodbye World" />',
radio_button("post", "title", "Goodbye World")
)
end
@@ -163,10 +163,10 @@ class FormHelperTest < Test::Unit::TestCase
check_box("post[]", "secret")
)
assert_equal(
-"<input checked=\"checked\" id=\"post_#{pid}_title\" name=\"post[#{pid}][title]\" size=\"30\" type=\"radio\" value=\"Hello World\" />",
+"<input checked=\"checked\" id=\"post_#{pid}_title\" name=\"post[#{pid}][title]\" type=\"radio\" value=\"Hello World\" />",
radio_button("post[]", "title", "Hello World")
)
- assert_equal("<input id=\"post_#{pid}_title\" name=\"post[#{pid}][title]\" size=\"30\" type=\"radio\" value=\"Goodbye World\" />",
+ assert_equal("<input id=\"post_#{pid}_title\" name=\"post[#{pid}][title]\" type=\"radio\" value=\"Goodbye World\" />",
radio_button("post[]", "title", "Goodbye World")
)
end