aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/template/form_tag_helper_test.rb
diff options
context:
space:
mode:
authorHongli Lai (Phusion) <hongli@phusion.nl>2008-11-13 21:49:23 +0100
committerMichael Koziarski <michael@koziarski.com>2008-11-13 21:55:58 +0100
commit4e9abdd7f1b4e05f8d1b50ddaa080b3ff63b92d9 (patch)
treeda8f41b6b511a4fdf04d1d25ee0e94ec7cd19475 /actionpack/test/template/form_tag_helper_test.rb
parent4c0921024471c0463d67f8b8fb6a115a94d343aa (diff)
downloadrails-4e9abdd7f1b4e05f8d1b50ddaa080b3ff63b92d9.tar.gz
rails-4e9abdd7f1b4e05f8d1b50ddaa080b3ff63b92d9.tar.bz2
rails-4e9abdd7f1b4e05f8d1b50ddaa080b3ff63b92d9.zip
Tag helper should output an attribute with the value 'false' instead of omitting the attribute, if the associated option is false but not nil.
Diffstat (limited to 'actionpack/test/template/form_tag_helper_test.rb')
-rw-r--r--actionpack/test/template/form_tag_helper_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/test/template/form_tag_helper_test.rb b/actionpack/test/template/form_tag_helper_test.rb
index de82647813..f8add0bab1 100644
--- a/actionpack/test/template/form_tag_helper_test.rb
+++ b/actionpack/test/template/form_tag_helper_test.rb
@@ -235,7 +235,7 @@ class FormTagHelperTest < ActionView::TestCase
assert_match VALID_HTML_ID, label_elem['for']
end
- def test_boolean_optios
+ def test_boolean_options
assert_dom_equal %(<input checked="checked" disabled="disabled" id="admin" name="admin" readonly="readonly" type="checkbox" value="1" />), check_box_tag("admin", 1, true, 'disabled' => true, :readonly => "yes")
assert_dom_equal %(<input checked="checked" id="admin" name="admin" type="checkbox" value="1" />), check_box_tag("admin", 1, true, :disabled => false, :readonly => nil)
assert_dom_equal %(<select id="people" multiple="multiple" name="people[]"><option>david</option></select>), select_tag("people", "<option>david</option>", :multiple => true)