diff options
author | Go MAEDA <maeda@farend.jp> | 2019-06-08 06:44:20 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2019-06-08 06:44:20 +0000 |
commit | 299f7a40b79e4e3c37711205f70fd847b4c7cde2 (patch) | |
tree | 0abfef50c08e59d66adf1a287ada2c14bce6fd72 /test/integration/api_test/issues_test.rb | |
parent | a12a6f6c3ec9634ee5f2a00a0db10b9966aaa8fc (diff) | |
download | redmine-299f7a40b79e4e3c37711205f70fd847b4c7cde2.tar.gz redmine-299f7a40b79e4e3c37711205f70fd847b4c7cde2.zip |
ApiTest fails if config.time_zone is set (#31388).
Patch by Yuichi HARADA.
git-svn-id: http://svn.redmine.org/redmine/trunk@18237 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/integration/api_test/issues_test.rb')
-rw-r--r-- | test/integration/api_test/issues_test.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/integration/api_test/issues_test.rb b/test/integration/api_test/issues_test.rb index c5bf86744..516221801 100644 --- a/test/integration/api_test/issues_test.rb +++ b/test/integration/api_test/issues_test.rb @@ -211,10 +211,10 @@ class Redmine::ApiTest::IssuesTest < Redmine::ApiTest::Base 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 + issue = Issue.find(1) + assert_select 'issue>created_on', :text => issue.created_on.iso8601 + assert_select 'issue>updated_on', :text => issue.updated_on.iso8601 + assert_select 'issue journal>created_on', :text => issue.journals[0].created_on.iso8601 end test "GET /issues/:id.xml with custom fields" do |