diff options
author | Vijay Dev <vijaydev.cse@gmail.com> | 2011-11-26 23:53:57 +0530 |
---|---|---|
committer | Vijay Dev <vijaydev.cse@gmail.com> | 2011-11-26 23:53:57 +0530 |
commit | d157ca881bce317c50ad085082ba4b609174ebbe (patch) | |
tree | 2fa992ff44178425dfd63cf79e142bb7b35dc372 /activesupport/test | |
parent | 9030cdadff8c7c859ba404c1d67b55f0441cdbf5 (diff) | |
download | rails-d157ca881bce317c50ad085082ba4b609174ebbe.tar.gz rails-d157ca881bce317c50ad085082ba4b609174ebbe.tar.bz2 rails-d157ca881bce317c50ad085082ba4b609174ebbe.zip |
add more tests for monday and sunday methods
Diffstat (limited to 'activesupport/test')
-rw-r--r-- | activesupport/test/core_ext/date_ext_test.rb | 2 |
1 files changed, 2 insertions, 0 deletions
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 |