aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2013-06-15 06:56:50 -0700
committerRafael Mendonça França <rafaelmfranca@gmail.com>2013-06-15 06:56:50 -0700
commit3b7192d21e673002070c852453b3cc32622a7591 (patch)
tree6ac4036e37380f75a3d593ff1c23eafb79b80c75 /actionpack/test
parentfe01752418cec61893f1d0c39aa29e6d9f5bcf4a (diff)
parenta89bdc04bae7253b9f442fc0106aeca8284e75a2 (diff)
downloadrails-3b7192d21e673002070c852453b3cc32622a7591.tar.gz
rails-3b7192d21e673002070c852453b3cc32622a7591.tar.bz2
rails-3b7192d21e673002070c852453b3cc32622a7591.zip
Merge pull request #10949 from alexpeattie/update_html_boolean_attrs
Update HTML boolean attributes per the HTML 5.1 spec
Diffstat (limited to 'actionpack/test')
-rw-r--r--actionpack/test/template/tag_helper_test.rb4
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