summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2009-11-07 09:50:16 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2009-11-07 09:50:16 +0000
commit86a9d90f07d6a46a733524d6ae5ac79740687154 (patch)
tree5ac75ab7214ddf58bfa257f4cbdfee42afcf91a8 /test
parent668ec7f69421f925160ec1effa3216e4754cc2da (diff)
downloadredmine-86a9d90f07d6a46a733524d6ae5ac79740687154.tar.gz
redmine-86a9d90f07d6a46a733524d6ae5ac79740687154.zip
Fixes distance of date in words calculation.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3016 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test')
-rw-r--r--test/unit/helpers/application_helper_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/unit/helpers/application_helper_test.rb b/test/unit/helpers/application_helper_test.rb
index 27d6c473e..84fc3bd6b 100644
--- a/test/unit/helpers/application_helper_test.rb
+++ b/test/unit/helpers/application_helper_test.rb
@@ -461,10 +461,10 @@ EXPECTED
to_test = { Date.today => 'Due in 0 days',
Date.today + 1 => 'Due in 1 day',
Date.today + 100 => 'Due in about 3 months',
- Date.today + 20000 => 'Due in over 55 years',
+ Date.today + 20000 => 'Due in over 54 years',
Date.today - 1 => '1 day late',
Date.today - 100 => 'about 3 months late',
- Date.today - 20000 => 'over 55 years late',
+ Date.today - 20000 => 'over 54 years late',
}
to_test.each do |date, expected|
assert_equal expected, due_date_distance_in_words(date)