aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack
diff options
context:
space:
mode:
authorNeeraj Singh <neerajdotname@gmail.com>2010-06-22 09:02:10 -0400
committerJosé Valim <jose.valim@gmail.com>2010-06-22 15:10:49 +0200
commitdcfb9805f2013853eb4d6cdd12f0301bb16cbc26 (patch)
tree96ffcc3556fb40248f51e104b385a2c3629cf945 /actionpack
parent6ea967729fef4e3155fb7a50813b503a0bfdc07f (diff)
downloadrails-dcfb9805f2013853eb4d6cdd12f0301bb16cbc26.tar.gz
rails-dcfb9805f2013853eb4d6cdd12f0301bb16cbc26.tar.bz2
rails-dcfb9805f2013853eb4d6cdd12f0301bb16cbc26.zip
test for #4862
Signed-off-by: José Valim <jose.valim@gmail.com>
Diffstat (limited to 'actionpack')
-rw-r--r--actionpack/test/template/form_helper_test.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/actionpack/test/template/form_helper_test.rb b/actionpack/test/template/form_helper_test.rb
index 8de1e782c0..11a3283092 100644
--- a/actionpack/test/template/form_helper_test.rb
+++ b/actionpack/test/template/form_helper_test.rb
@@ -300,6 +300,11 @@ class FormHelperTest < ActionView::TestCase
)
end
+ def test_radio_button_with_negative_integer_value
+ assert_dom_equal('<input id="post_secret_-1" name="post[secret]" type="radio" value="-1" />',
+ radio_button("post", "secret", "-1"))
+ end
+
def test_radio_button_respects_passed_in_id
assert_dom_equal('<input checked="checked" id="foo" name="post[secret]" type="radio" value="1" />',
radio_button("post", "secret", "1", :id=>"foo")