1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Give time_ago_in_words test some DST slop.

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6374 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
Jeremy Kemper 2007-03-11 12:29:20 +00:00
parent 98165fd31e
commit 9cc32a9ec8

View file

@ -93,8 +93,7 @@ class DateHelperTest < Test::Unit::TestCase
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