]> source.dussan.org Git - redmine.git/commitdiff
Make sure en is the current locale when running the test (#7266).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Mon, 10 Jan 2011 17:55:57 +0000 (17:55 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Mon, 10 Jan 2011 17:55:57 +0000 (17:55 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4677 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/unit/helpers/application_helper_test.rb

index 5f5eefa192fa6acbfe1deed2da8fc281a26e62c1..52d49743df5fa81c5dce0f111433d2949c068e63 100644 (file)
@@ -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