@@ -44,7 +44,9 class Redmine::I18nTest < ActiveSupport::TestCase | |||||
44 | today = now = Time.parse('2011-02-20 14:00:00') |
|
44 | today = now = Time.parse('2011-02-20 14:00:00') | |
45 | Setting.date_format = '%d %B %Y' |
|
45 | Setting.date_format = '%d %B %Y' | |
46 | User.current.language = 'fr' |
|
46 | User.current.language = 'fr' | |
47 | assert_equal "20 f\u00E9vrier 2011", format_date(today) |
|
47 | s1 = "20 f\xc3\xa9vrier 2011" | |
|
48 | s1.force_encoding("UTF-8") if s1.respond_to?(:force_encoding) | |||
|
49 | assert_equal s1, format_date(today) | |||
48 | User.current.language = nil |
|
50 | User.current.language = nil | |
49 | assert_equal '20 Febrero 2011', format_date(today) |
|
51 | assert_equal '20 Febrero 2011', format_date(today) | |
50 | end |
|
52 | end |
General Comments 0
You need to be logged in to leave comments.
Login now