mirror of
https://github.com/ruby/ruby.git
synced 2025-08-23 13:04:13 +02:00
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
This commit is contained in:
parent
32c4fd7aa3
commit
88083fa47e
3 changed files with 12 additions and 1 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue