From: Jean-Philippe Lang Date: Mon, 10 Jan 2011 17:55:57 +0000 (+0000) Subject: Make sure en is the current locale when running the test (#7266). X-Git-Tag: 1.2.0~1104 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=bebde1596cf51be7064f9d4a569f54b0cdc1c7cf;p=redmine.git Make sure en is the current locale when running the test (#7266). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4677 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/test/unit/helpers/application_helper_test.rb b/test/unit/helpers/application_helper_test.rb index 5f5eefa19..52d49743d 100644 --- a/test/unit/helpers/application_helper_test.rb +++ b/test/unit/helpers/application_helper_test.rb @@ -610,6 +610,7 @@ EXPECTED Date.today - 100 => 'about 3 months late', Date.today - 20000 => 'over 54 years late', } + ::I18n.locale = :en to_test.each do |date, expected| assert_equal expected, due_date_distance_in_words(date) end