From 9cc32a9ec8f69e810c0c65f3dae78f2b40e20aff Mon Sep 17 00:00:00 2001 From: Jeremy Kemper Date: Sun, 11 Mar 2007 12:29:20 +0000 Subject: 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 --- actionpack/test/template/date_helper_test.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'actionpack/test/template/date_helper_test.rb') 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 -- cgit v1.2.3