Permalink
Browse files

revises tests for Date.yesterday and Date.tomorrow

  • Loading branch information...
fxn committed May 1, 2010
1 parent 7aaabea commit 1b33a151b2da4f8d24a981e0fbaa008352c41aa0
Showing with 3 additions and 3 deletions.
  1. +3 −3 activesupport/test/core_ext/date_ext_test.rb
@@ -176,13 +176,13 @@ def test_last_month_on_31st
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

0 comments on commit 1b33a15

Please sign in to comment.