1
0
mirror of https://github.com/meineerde/redmine.git synced 2025-12-22 16:31:12 +00:00

Fix that Redmine::ApiTest::NewsTest fails when config.time_zone is set (#13468).

Patch by Yuichi HARADA.


git-svn-id: http://svn.redmine.org/redmine/trunk@18445 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Go MAEDA 2019-09-11 01:53:00 +00:00
parent 5ca458864e
commit 6b6895fc42

View File

@ -73,8 +73,7 @@ class Redmine::ApiTest::NewsTest < Redmine::ApiTest::Base
assert_select 'title', 'eCookbook first release !'
assert_select 'summary', 'First version was released...'
assert_select 'description', "eCookbook 1.0 has been released.\n\nVisit http://ecookbook.somenet.foo/"
iso_date = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}Z$/
assert_select 'news>created_on', :text => iso_date
assert_select 'created_on', News.find(1).created_on.iso8601
end
end