aboutsummaryrefslogtreecommitdiffstats
path: root/actionview/test/template/date_helper_test.rb
diff options
context:
space:
mode:
authorVipul A M <vipulnsward@gmail.com>2016-06-28 03:18:05 -0700
committerVipul A M <vipulnsward@gmail.com>2016-06-28 03:18:05 -0700
commit940eec417f20e53abd3e3114c7fa845dac0d3a62 (patch)
tree97278baa4fe761e0f129d6e8e8a8c7e715793a67 /actionview/test/template/date_helper_test.rb
parent13a5cc33410bd26be8e7669259b60021fba7012a (diff)
downloadrails-940eec417f20e53abd3e3114c7fa845dac0d3a62.tar.gz
rails-940eec417f20e53abd3e3114c7fa845dac0d3a62.tar.bz2
rails-940eec417f20e53abd3e3114c7fa845dac0d3a62.zip
Bring Boolean Attributes list for AV Tags helper upto speed with current spec.
This is based on https://github.com/kangax/html-minifier/blob/6b2d4536d82819143b468b41a89c700b6c61631f/src/htmlminifier.js#L197 and spec from https://www.w3.org/TR/html51/single-page.html. Couple of other changes to tests due to support update: - autobuffer has been dropped in favour of preload attribute, ref: https://msdn.microsoft.com/en-us/library/ff974743(v=vs.85).aspx - pubdate attribute has been dropped from spec, ref: https://www.w3.org/html/wg/tracker/issues/185
Diffstat (limited to 'actionview/test/template/date_helper_test.rb')
-rw-r--r--actionview/test/template/date_helper_test.rb4
1 files changed, 0 insertions, 4 deletions
diff --git a/actionview/test/template/date_helper_test.rb b/actionview/test/template/date_helper_test.rb
index 0f89f2ca09..3b4d4f42e5 100644
--- a/actionview/test/template/date_helper_test.rb
+++ b/actionview/test/template/date_helper_test.rb
@@ -3609,10 +3609,6 @@ class DateHelperTest < ActionView::TestCase
assert_equal expected, time_tag(time)
end
- def test_time_tag_pubdate_option
- assert_match(/<time.*pubdate="pubdate">.*<\/time>/, time_tag(Time.now, :pubdate => true))
- end
-
def test_time_tag_with_given_text
assert_match(/<time.*>Right now<\/time>/, time_tag(Time.now, 'Right now'))
end