From f0dfff4866fda3a437c587a645a705083bf98453 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sun, 17 Apr 2011 20:34:43 +0000 Subject: [PATCH] Fixes potential test failure. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5498 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- test/unit/lib/redmine/i18n_test.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/unit/lib/redmine/i18n_test.rb b/test/unit/lib/redmine/i18n_test.rb index 946e7463f..ae04e4674 100644 --- a/test/unit/lib/redmine/i18n_test.rb +++ b/test/unit/lib/redmine/i18n_test.rb @@ -101,11 +101,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