aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/template/date_helper_test.rb
diff options
context:
space:
mode:
authorAlexey Vakhov <vakhov@gmail.com>2012-04-24 08:49:02 +0400
committerAlexey Vakhov <vakhov@gmail.com>2012-04-24 15:56:35 +0400
commitff5b0d699d7cef29a45e51890c6b781a0e70925f (patch)
tree78959942a5db91674d854281211ffe5d62831a1b /actionpack/test/template/date_helper_test.rb
parent0b05380ea77a778b660f2e28e0f080c340c32daf (diff)
downloadrails-ff5b0d699d7cef29a45e51890c6b781a0e70925f.tar.gz
rails-ff5b0d699d7cef29a45e51890c6b781a0e70925f.tar.bz2
rails-ff5b0d699d7cef29a45e51890c6b781a0e70925f.zip
Distance of time in words should work correct if from time > to_time
Diffstat (limited to 'actionpack/test/template/date_helper_test.rb')
-rw-r--r--actionpack/test/template/date_helper_test.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/actionpack/test/template/date_helper_test.rb b/actionpack/test/template/date_helper_test.rb
index c9b8a5bb70..6f6a10472a 100644
--- a/actionpack/test/template/date_helper_test.rb
+++ b/actionpack/test/template/date_helper_test.rb
@@ -125,6 +125,7 @@ class DateHelperTest < ActionView::TestCase
start_date = Date.new 1982, 12, 3
end_date = Date.new 2010, 11, 30
assert_equal("almost 28 years", distance_of_time_in_words(start_date, end_date))
+ assert_equal("almost 28 years", distance_of_time_in_words(end_date, start_date))
end
def test_distance_in_words_with_integers