moved DEPTHS constant from Summary class to the

Date class and using it (mostly) everywhere
This commit is contained in:
2010-07-24 21:39:13 +03:00
parent 14d2bc1189
commit 0d3d5469c0
3 changed files with 6 additions and 6 deletions

View File

@@ -5,7 +5,7 @@ describe Redistat::Date do
it "should initialize from Time object" do
now = Time.now
[Redistat::Date.new(now), now.to_rs].each do |rdate|
[:year, :month, :day, :hour, :min, :sec, :usec].each { |k| rdate.send(k).should == now.send(k) }
Redistat::Date::DEPTHS.each { |k| rdate.send(k).should == now.send(k) }
end
end