aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel/test/cases/serializers
diff options
context:
space:
mode:
authorAngelo capilleri <capilleri@yahoo.com>2012-05-23 09:59:13 +0200
committerAngelo capilleri <capilleri@yahoo.com>2012-05-23 14:45:56 +0200
commit5646d65d01845adf669b9e6c4899b6ac15849bb9 (patch)
tree78c26a96418081005e94d18573b50718757a2a0a /activemodel/test/cases/serializers
parentcb92efbf0463f3b6dc0456a497556d5b414fb0e8 (diff)
downloadrails-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 'activemodel/test/cases/serializers')
-rw-r--r--activemodel/test/cases/serializers/xml_serialization_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activemodel/test/cases/serializers/xml_serialization_test.rb b/activemodel/test/cases/serializers/xml_serialization_test.rb
index 5fa227e0e0..7eb48abc3c 100644
--- a/activemodel/test/cases/serializers/xml_serialization_test.rb
+++ b/activemodel/test/cases/serializers/xml_serialization_test.rb
@@ -140,7 +140,7 @@ class XmlSerializationTest < ActiveModel::TestCase
end
test "should serialize datetime" do
- assert_match %r{<created-at type=\"datetime\">2006-08-01T00:00:00Z</created-at>}, @contact.to_xml
+ assert_match %r{<created-at type=\"dateTime\">2006-08-01T00:00:00Z</created-at>}, @contact.to_xml
end
test "should serialize boolean" do