diff options
author | Angelo capilleri <capilleri@yahoo.com> | 2012-05-23 09:59:13 +0200 |
---|---|---|
committer | Angelo capilleri <capilleri@yahoo.com> | 2012-05-23 14:45:56 +0200 |
commit | 5646d65d01845adf669b9e6c4899b6ac15849bb9 (patch) | |
tree | 78c26a96418081005e94d18573b50718757a2a0a /activesupport/test | |
parent | cb92efbf0463f3b6dc0456a497556d5b414fb0e8 (diff) | |
download | rails-5646d65d01845adf669b9e6c4899b6ac15849bb9.tar.gz rails-5646d65d01845adf669b9e6c4899b6ac15849bb9.tar.bz2 rails-5646d65d01845adf669b9e6c4899b6ac15849bb9.zip |
changed xml type datetime to dateTime, fixes #6328
XmlMini define the xml 'datatime', but according to
http://www.w3.org/TR/xmlschema-2/#dateTime could be better
change this to 'dateTime' with upper case letter 'T.
So 'DateTime' and 'Time' are redefined from 'datetime' to 'dateTime'
add the changing to the changelog
Diffstat (limited to 'activesupport/test')
-rw-r--r-- | activesupport/test/core_ext/hash_ext_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activesupport/test/core_ext/hash_ext_test.rb b/activesupport/test/core_ext/hash_ext_test.rb index 8239054117..0b0e7da4a5 100644 --- a/activesupport/test/core_ext/hash_ext_test.rb +++ b/activesupport/test/core_ext/hash_ext_test.rb @@ -672,8 +672,8 @@ class HashToXmlTest < ActiveSupport::TestCase :created_at => Time.utc(1999,2,2), :local_created_at => Time.utc(1999,2,2).in_time_zone('Eastern Time (US & Canada)') }.to_xml(@xml_options) - assert_match %r{<created-at type=\"datetime\">1999-02-02T00:00:00Z</created-at>}, xml - assert_match %r{<local-created-at type=\"datetime\">1999-02-01T19:00:00-05:00</local-created-at>}, xml + assert_match %r{<created-at type=\"dateTime\">1999-02-02T00:00:00Z</created-at>}, xml + assert_match %r{<local-created-at type=\"dateTime\">1999-02-01T19:00:00-05:00</local-created-at>}, xml end def test_multiple_records_from_xml_with_attributes_other_than_type_ignores_them_without_exploding |