Class: TestYearForTime
- Inherits:
-
Test::Unit::TestCase
- Object
- Test::Unit::TestCase
- TestYearForTime
- Defined in:
- lib/test/modules/time/test_year.rb
Instance Method Summary collapse
Instance Method Details
#test_years_between_dates ⇒ Object
10 11 12 |
# File 'lib/test/modules/time/test_year.rb', line 10 def test_years_between_dates assert_equal 3, Time.years_between_dates(Time.new(2015, 11, 1), Time.new(2012, 11, 15)) end |