diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-09-05 02:39:55 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-09-05 02:39:55 +0000 |
commit | 8bdd8bfca2c2991d02f4629c93b3144327c31867 (patch) | |
tree | 5f2a2b5102483d20234ae35b6cd7176be9c22293 /test/rss | |
parent | 6388298bc7baaec125f7c2c2d773498fd375f5f5 (diff) | |
download | ruby-8bdd8bfca2c2991d02f4629c93b3144327c31867.tar.gz |
rss.rb: fix usec width
* lib/rss/rss.rb (Time#w3cdtf): fix zero-trimmed width of fraction
digits. [ruby-core:70667] [Bug #11509]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51766 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/rss')
-rw-r--r-- | test/rss/test_to_s.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/rss/test_to_s.rb b/test/rss/test_to_s.rb index 4ef83ce18b..d97cf9d4b0 100644 --- a/test/rss/test_to_s.rb +++ b/test/rss/test_to_s.rb @@ -102,6 +102,12 @@ module RSS assert_textinput20(@textinput_info, rss.textinput) end + def test_time_w3cdtf + assert_equal("2015-09-05T01:25:48.0001Z", + Time.utc(2015, 9, 5, 1, 25, 48, 100).w3cdtf, + '[ruby-core:70667] [Bug #11509]') + end + private def setup_xml_declaration_info @version = "1.0" |