mirror of
https://github.com/meineerde/redmine.git
synced 2026-03-26 18:51:11 +00:00
Add debug info for random test failure.
git-svn-id: http://svn.redmine.org/redmine/trunk@14669 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
b0a47cc5ba
commit
ebdfe41cff
@ -118,8 +118,8 @@ class Redmine::I18nTest < ActiveSupport::TestCase
|
|||||||
set_language_if_valid 'en'
|
set_language_if_valid 'en'
|
||||||
now = Time.now
|
now = Time.now
|
||||||
with_settings :date_format => '%d %m %Y', :time_format => '%H %M' do
|
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.localtime.strftime('%d %m %Y %H %M'), format_time(now.utc), "User time zone was #{User.current.time_zone}"
|
||||||
assert_equal now.strftime('%H %M'), format_time(now.utc, false)
|
assert_equal now.localtime.strftime('%H %M'), format_time(now.utc, false)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user