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:
parent
98165fd31e
commit
9cc32a9ec8
1 changed files with 1 additions and 2 deletions
|
@ -93,8 +93,7 @@ class DateHelperTest < Test::Unit::TestCase
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_time_ago_in_words
|
def test_time_ago_in_words
|
||||||
t = Time.now - 1.years
|
assert_equal "about 1 year", time_ago_in_words(1.year.ago - 1.day)
|
||||||
assert_equal "about 1 year", time_ago_in_words(t)
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_select_day
|
def test_select_day
|
||||||
|
|
Loading…
Reference in a new issue