summaryrefslogtreecommitdiffstats
path: root/test/integration/api_test/issues_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/integration/api_test/issues_test.rb')
-rw-r--r--test/integration/api_test/issues_test.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/integration/api_test/issues_test.rb b/test/integration/api_test/issues_test.rb
index 78775eaed..b71b268b8 100644
--- a/test/integration/api_test/issues_test.rb
+++ b/test/integration/api_test/issues_test.rb
@@ -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'