diff options
author | Alex Peattie <alexpeattie@gmail.com> | 2013-06-14 23:47:21 +0100 |
---|---|---|
committer | Alex Peattie <alexpeattie@gmail.com> | 2013-06-14 23:47:21 +0100 |
commit | a89bdc04bae7253b9f442fc0106aeca8284e75a2 (patch) | |
tree | f915ad8e3730c724bccecfff1bd5b093cfd519fb /actionpack/test | |
parent | 6e34601653614ca98f632d14662b4852bc351abe (diff) | |
download | rails-a89bdc04bae7253b9f442fc0106aeca8284e75a2.tar.gz rails-a89bdc04bae7253b9f442fc0106aeca8284e75a2.tar.bz2 rails-a89bdc04bae7253b9f442fc0106aeca8284e75a2.zip |
Update the HTML boolean attributes per the HTML 5.1 spec
- Add attributes `allowfullscreen`, `default`, `inert`, `sortable`,
`truespeed`, `typemustmatch`.
- Fix attribute `seamless` (previously misspelled `seemless`).
- Use `assert_dom_equal` instead of `assert_equal` in test.
Diffstat (limited to 'actionpack/test')
-rw-r--r-- | actionpack/test/template/tag_helper_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/test/template/tag_helper_test.rb b/actionpack/test/template/tag_helper_test.rb index 9e711c6529..802da5d566 100644 --- a/actionpack/test/template/tag_helper_test.rb +++ b/actionpack/test/template/tag_helper_test.rb @@ -30,8 +30,8 @@ class TagHelperTest < ActionView::TestCase end def test_tag_options_converts_boolean_option - assert_equal '<p disabled="disabled" itemscope="itemscope" multiple="multiple" readonly="readonly" />', - tag("p", :disabled => true, :itemscope => true, :multiple => true, :readonly => true) + assert_dom_equal '<p disabled="disabled" itemscope="itemscope" multiple="multiple" readonly="readonly" allowfullscreen="allowfullscreen" seamless="seamless" typemustmatch="typemustmatch" sortable="sortable" default="default" inert="inert" truespeed="truespeed" />', + tag("p", :disabled => true, :itemscope => true, :multiple => true, :readonly => true, :allowfullscreen => true, :seamless => true, :typemustmatch => true, :sortable => true, :default => true, :inert => true, :truespeed => true) end def test_content_tag |