diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2011-06-30 07:34:10 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2011-06-30 08:08:59 +0200 |
commit | e807f70bfa78f54ff071985e8c727c8f08ebb69c (patch) | |
tree | 94f4a770826dfd40d5cc5992558dee0853055b36 /spec | |
parent | 98267e69772bac32fa02021331277604dd530029 (diff) | |
download | ayk-e807f70bfa78f54ff071985e8c727c8f08ebb69c.zip ayk-e807f70bfa78f54ff071985e8c727c8f08ebb69c.tar.gz |
update rake system
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 |