diff --git a/actionpack/test/template/date_helper_test.rb b/actionpack/test/template/date_helper_test.rb index 340175b9c973e605c5682dec1e22065a31331016..f78819cfce8e3dd283da3ff6d19e2db1c4f25420 100755 --- a/actionpack/test/template/date_helper_test.rb +++ b/actionpack/test/template/date_helper_test.rb @@ -93,8 +93,7 @@ def test_distance_in_words_with_dates end def test_time_ago_in_words - t = Time.now - 1.years - assert_equal "about 1 year", time_ago_in_words(t) + assert_equal "about 1 year", time_ago_in_words(1.year.ago - 1.day) end def test_select_day