summaryrefslogtreecommitdiffstats
path: root/test/unit/lib/redmine/i18n_test.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2015-10-09 19:49:54 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2015-10-09 19:49:54 +0000
commitebdfe41cff3f2fbb634d89d449c5c9c76357cf47 (patch)
tree4baad69985ee2845373de37e8e2f17d36953dfc8 /test/unit/lib/redmine/i18n_test.rb
parentb0a47cc5ba2e75af883dd3a0d116e6466e31148b (diff)
downloadredmine-ebdfe41cff3f2fbb634d89d449c5c9c76357cf47.tar.gz
redmine-ebdfe41cff3f2fbb634d89d449c5c9c76357cf47.zip
Add debug info for random test failure.
git-svn-id: http://svn.redmine.org/redmine/trunk@14669 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit/lib/redmine/i18n_test.rb')
-rw-r--r--test/unit/lib/redmine/i18n_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/unit/lib/redmine/i18n_test.rb b/test/unit/lib/redmine/i18n_test.rb
index a2b81ab14..67823977d 100644
--- a/test/unit/lib/redmine/i18n_test.rb
+++ b/test/unit/lib/redmine/i18n_test.rb
@@ -118,8 +118,8 @@ class Redmine::I18nTest < ActiveSupport::TestCase
set_language_if_valid 'en'
now = Time.now
with_settings :date_format => '%d %m %Y', :time_format => '%H %M' do
- assert_equal now.strftime('%d %m %Y %H %M'), format_time(now.utc)
- assert_equal now.strftime('%H %M'), format_time(now.utc, false)
+ assert_equal now.localtime.strftime('%d %m %Y %H %M'), format_time(now.utc), "User time zone was #{User.current.time_zone}"
+ assert_equal now.localtime.strftime('%H %M'), format_time(now.utc, false)
end
end