Module: Date::Etest

Defined in:
lib/vex/base/time/date_ext.rb

Instance Method Summary collapse

Instance Method Details

#test_first_of_monthObject


8
9
10
11
# File 'lib/vex/base/time/date_ext.rb', line 8

def test_first_of_month
  date = Date.parse("2010/02/28")
  assert_equal Date.parse("2010/02/01"), date.first_of_month
end