diff options
author | Xavier Noria <fxn@hashref.com> | 2010-05-02 01:36:10 +0200 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2010-05-02 01:36:10 +0200 |
commit | 1b33a151b2da4f8d24a981e0fbaa008352c41aa0 (patch) | |
tree | 7bcb2329ca0bcde744718949b4bf30ee8c46f3c8 /activesupport/test | |
parent | 7aaabea5175be4b01697684e7573b422629206e6 (diff) | |
download | rails-1b33a151b2da4f8d24a981e0fbaa008352c41aa0.tar.gz rails-1b33a151b2da4f8d24a981e0fbaa008352c41aa0.tar.bz2 rails-1b33a151b2da4f8d24a981e0fbaa008352c41aa0.zip |
revises tests for Date.yesterday and Date.tomorrow
Diffstat (limited to 'activesupport/test')
-rw-r--r-- | activesupport/test/core_ext/date_ext_test.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/activesupport/test/core_ext/date_ext_test.rb b/activesupport/test/core_ext/date_ext_test.rb index 23c9bc7fb1..4ff714cabc 100644 --- a/activesupport/test/core_ext/date_ext_test.rb +++ b/activesupport/test/core_ext/date_ext_test.rb @@ -176,13 +176,13 @@ class DateExtCalculationsTest < Test::Unit::TestCase end def test_yesterday_constructor - assert_equal Date.today - 1, Date.yesterday + assert_equal Date.current - 1, Date.yesterday end def test_tomorrow_constructor - assert_equal Date.today + 1, Date.tomorrow + assert_equal Date.current + 1, Date.tomorrow end - + def test_since assert_equal Time.local(2005,2,21,0,0,45), Date.new(2005,2,21).since(45) end |