From d157ca881bce317c50ad085082ba4b609174ebbe Mon Sep 17 00:00:00 2001 From: Vijay Dev Date: Sat, 26 Nov 2011 23:53:57 +0530 Subject: add more tests for monday and sunday methods --- activesupport/test/core_ext/date_ext_test.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'activesupport/test') diff --git a/activesupport/test/core_ext/date_ext_test.rb b/activesupport/test/core_ext/date_ext_test.rb index 462badfe46..c040d86327 100644 --- a/activesupport/test/core_ext/date_ext_test.rb +++ b/activesupport/test/core_ext/date_ext_test.rb @@ -59,10 +59,12 @@ class DateExtCalculationsTest < ActiveSupport::TestCase def test_monday assert_equal Date.new(2005,11,28), Date.new(2005,11,28).monday + assert_equal Date.new(2005,11,28), Date.new(2005,12,01).monday end def test_sunday assert_equal Date.new(2008,3,2), Date.new(2008,3,02).sunday + assert_equal Date.new(2008,3,2), Date.new(2008,2,29).sunday end def test_beginning_of_week_in_calendar_reform -- cgit v1.2.3