Permalink
Browse files

test for #4862

Signed-off-by: José Valim <jose.valim@gmail.com>
  • Loading branch information...
1 parent 6ea9677 commit dcfb9805f2013853eb4d6cdd12f0301bb16cbc26 Neeraj Singh committed with josevalim Jun 22, 2010
Showing with 5 additions and 0 deletions.
  1. +5 −0 actionpack/test/template/form_helper_test.rb
@@ -300,6 +300,11 @@ def test_radio_button_is_checked_with_integers
)
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")

0 comments on commit dcfb980

Please sign in to comment.