diff options
Diffstat (limited to 'spec')
-rw-r--r-- | spec/age.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/spec/age.rb b/spec/age.rb index 99a09c7..1e4c9a8 100644 --- a/spec/age.rb +++ b/spec/age.rb @@ -78,6 +78,15 @@ describe DateTime do i.should eql 20 s.should eql 0 end + it "should correctly handle 1 year -1 day " + y,m,d,h,i,s = @b.age( DateTime.civil(2009,7,26,4,40,0) ) + y.should eql 0 + m.should eql 11 + d.should eql 15 + h.should eql 19 + i.should eql 20 + s.should eql 0 + end end |