mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Tests added for monday and sunday
Reference commits :a8f2860d0e80ac4dc6d0
This commit is contained in:
@@ -57,6 +57,14 @@ class DateExtCalculationsTest < ActiveSupport::TestCase
|
||||
assert_equal Date.new(2005,11,28), Date.new(2005,12,04).beginning_of_week #sunday
|
||||
end
|
||||
|
||||
def test_monday
|
||||
assert_equal Date.new(2005,11,28), Date.new(2005,11,28).monday
|
||||
end
|
||||
|
||||
def test_sunday
|
||||
assert_equal Date.new(2008,3,2), Date.new(2008,3,02).sunday
|
||||
end
|
||||
|
||||
def test_beginning_of_week_in_calendar_reform
|
||||
assert_equal Date.new(1582,10,1), Date.new(1582,10,15).beginning_of_week #friday
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user