Browse Source

Add debug info for random test failure.

git-svn-id: http://svn.redmine.org/redmine/trunk@14669 e93f8b46-1217-0410-a6f0-8f06a7374b81
tags/3.2.0
Jean-Philippe Lang 8 years ago
parent
commit
ebdfe41cff
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      test/unit/lib/redmine/i18n_test.rb

+ 2
- 2
test/unit/lib/redmine/i18n_test.rb View File

@@ -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


Loading…
Cancel
Save