From: Jean-Philippe Lang Date: Fri, 9 Oct 2015 19:49:54 +0000 (+0000) Subject: Add debug info for random test failure. X-Git-Tag: 3.2.0~191 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=ebdfe41cff3f2fbb634d89d449c5c9c76357cf47;p=redmine.git Add debug info for random test failure. git-svn-id: http://svn.redmine.org/redmine/trunk@14669 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- 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