Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
O
OHR Support
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
97
Issues
97
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
OHR Support
Commits
a107202a
Commit
a107202a
authored
Oct 16, 2011
by
Holger Just
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix race-condition in test_utc_time_format
parent
61b9939b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
i18n_test.rb
test/unit/lib/redmine/i18n_test.rb
+3
-3
No files found.
test/unit/lib/redmine/i18n_test.rb
View file @
a107202a
...
...
@@ -96,11 +96,11 @@ class Redmine::I18nTest < ActiveSupport::TestCase
def
test_utc_time_format
set_language_if_valid
'en'
now
=
Time
.
now
.
utc
now
=
Time
.
now
Setting
.
date_format
=
'%d %m %Y'
Setting
.
time_format
=
'%H %M'
assert_equal
Time
.
now
.
strftime
(
'%d %m %Y %H %M'
),
format_time
(
now
)
assert_equal
Time
.
now
.
strftime
(
'%H %M'
),
format_time
(
now
,
false
)
assert_equal
now
.
strftime
(
'%d %m %Y %H %M'
),
format_time
(
now
.
utc
)
assert_equal
now
.
strftime
(
'%H %M'
),
format_time
(
now
.
utc
,
false
)
end
def
test_number_to_human_size_for_each_language
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment