mirror of
https://github.com/redmine/redmine.git
synced 2025-11-11 07:46:02 +01:00
Fixes potential test failure.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5498 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -101,11 +101,11 @@ class Redmine::I18nTest < ActiveSupport::TestCase
|
|||||||
|
|
||||||
def test_utc_time_format
|
def test_utc_time_format
|
||||||
set_language_if_valid 'en'
|
set_language_if_valid 'en'
|
||||||
now = Time.now.utc
|
now = Time.now
|
||||||
Setting.date_format = '%d %m %Y'
|
Setting.date_format = '%d %m %Y'
|
||||||
Setting.time_format = '%H %M'
|
Setting.time_format = '%H %M'
|
||||||
assert_equal Time.now.strftime('%d %m %Y %H %M'), format_time(now)
|
assert_equal now.strftime('%d %m %Y %H %M'), format_time(now.utc)
|
||||||
assert_equal Time.now.strftime('%H %M'), format_time(now, false)
|
assert_equal now.strftime('%H %M'), format_time(now.utc, false)
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_number_to_human_size_for_each_language
|
def test_number_to_human_size_for_each_language
|
||||||
|
|||||||
Reference in New Issue
Block a user