mirror of
https://github.com/jimeh/redistat.git
synced 2026-02-19 13:26:39 +00:00
moved DEPTHS constant from Summary class to the
Date class and using it (mostly) everywhere
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user