From e807f70bfa78f54ff071985e8c727c8f08ebb69c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Thu, 30 Jun 2011 07:34:10 +0200 Subject: update rake system --- spec/age.rb | 9 +++++++++ 1 file changed, 9 insertions(+) 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 -- cgit v1.1-2-g2b99