aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test/core_ext/date_ext_test.rb
diff options
context:
space:
mode:
authorVijay Dev <vijaydev.cse@gmail.com>2011-11-26 23:53:57 +0530
committerVijay Dev <vijaydev.cse@gmail.com>2011-11-26 23:53:57 +0530
commitd157ca881bce317c50ad085082ba4b609174ebbe (patch)
tree2fa992ff44178425dfd63cf79e142bb7b35dc372 /activesupport/test/core_ext/date_ext_test.rb
parent9030cdadff8c7c859ba404c1d67b55f0441cdbf5 (diff)
downloadrails-d157ca881bce317c50ad085082ba4b609174ebbe.tar.gz
rails-d157ca881bce317c50ad085082ba4b609174ebbe.tar.bz2
rails-d157ca881bce317c50ad085082ba4b609174ebbe.zip
add more tests for monday and sunday methods
Diffstat (limited to 'activesupport/test/core_ext/date_ext_test.rb')
-rw-r--r--activesupport/test/core_ext/date_ext_test.rb2
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