diff options
author | Go MAEDA <maeda@farend.jp> | 2020-08-02 05:26:26 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2020-08-02 05:26:26 +0000 |
commit | 094a7cbd9e39a70819e1109260516f699a276470 (patch) | |
tree | 983e0e587630fb7ba8a9fc3d98ce50e8b5c35a9b /test/integration/api_test | |
parent | 5d92cbc3123d36890ef2baa918b141e42ceb8ff0 (diff) | |
download | redmine-094a7cbd9e39a70819e1109260516f699a276470.tar.gz redmine-094a7cbd9e39a70819e1109260516f699a276470.zip |
Redmine::ApiTest::UsersTest fails if config.time_zone is set (#33592, #33787).
Patch by Yuichi HARADA.
git-svn-id: http://svn.redmine.org/redmine/trunk@19942 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/integration/api_test')
-rw-r--r-- | test/integration/api_test/users_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/integration/api_test/users_test.rb b/test/integration/api_test/users_test.rb index 6322af2a1..1c669c9f5 100644 --- a/test/integration/api_test/users_test.rb +++ b/test/integration/api_test/users_test.rb @@ -66,7 +66,7 @@ class Redmine::ApiTest::UsersTest < Redmine::ApiTest::Base assert_response :success assert_select 'user id', :text => '2' - assert_select 'user updated_on', :text => '2006-07-19T20:42:15Z' + assert_select 'user updated_on', :text => Time.zone.parse('2006-07-19T20:42:15Z').iso8601 assert_select 'user passwd_changed_on', :text => '' end @@ -78,7 +78,7 @@ class Redmine::ApiTest::UsersTest < Redmine::ApiTest::Base assert_kind_of Hash, json assert_kind_of Hash, json['user'] assert_equal 2, json['user']['id'] - assert_equal '2006-07-19T20:42:15Z', json['user']['updated_on'] + assert_equal Time.zone.parse('2006-07-19T20:42:15Z').iso8601, json['user']['updated_on'] assert_nil json['user']['passwd_changed_on'] end |