summaryrefslogtreecommitdiffstats
path: root/spec/age.rb
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2011-06-30 07:34:10 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2011-06-30 08:08:59 +0200
commite807f70bfa78f54ff071985e8c727c8f08ebb69c (patch)
tree94f4a770826dfd40d5cc5992558dee0853055b36 /spec/age.rb
parent98267e69772bac32fa02021331277604dd530029 (diff)
downloadayk-e807f70bfa78f54ff071985e8c727c8f08ebb69c.zip
ayk-e807f70bfa78f54ff071985e8c727c8f08ebb69c.tar.gz
update rake system
Diffstat (limited to 'spec/age.rb')
-rw-r--r--spec/age.rb9
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