mirror of
https://github.com/redmine/redmine.git
synced 2025-11-07 05:45:49 +01:00
Fixed that timestamps may not be formatted as expected in XML responses (#19065).
git-svn-id: http://svn.redmine.org/redmine/trunk@14015 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -183,6 +183,15 @@ class Redmine::ApiTest::IssuesTest < Redmine::ApiTest::Base
|
||||
end
|
||||
end
|
||||
|
||||
test "GET /issues/:id.xml with journals should format timestamps in ISO 8601" do
|
||||
get '/issues/1.xml?include=journals'
|
||||
|
||||
iso_date = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}Z$/
|
||||
assert_select 'issue>created_on', :text => iso_date
|
||||
assert_select 'issue>updated_on', :text => iso_date
|
||||
assert_select 'issue journal>created_on', :text => iso_date
|
||||
end
|
||||
|
||||
test "GET /issues/:id.xml with custom fields" do
|
||||
get '/issues/3.xml'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user