diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2007-03-11 12:29:20 +0000 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2007-03-11 12:29:20 +0000 |
commit | 9cc32a9ec8f69e810c0c65f3dae78f2b40e20aff (patch) | |
tree | d97ef0670da5aefde44ff9b6f23cdc0963734ca4 | |
parent | 98165fd31e7be605ef37e096e8423ce8953ef4ed (diff) | |
download | rails-9cc32a9ec8f69e810c0c65f3dae78f2b40e20aff.tar.gz rails-9cc32a9ec8f69e810c0c65f3dae78f2b40e20aff.tar.bz2 rails-9cc32a9ec8f69e810c0c65f3dae78f2b40e20aff.zip |
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
-rwxr-xr-x | actionpack/test/template/date_helper_test.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/actionpack/test/template/date_helper_test.rb b/actionpack/test/template/date_helper_test.rb index 340175b9c9..f78819cfce 100755 --- a/actionpack/test/template/date_helper_test.rb +++ b/actionpack/test/template/date_helper_test.rb @@ -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 |