added some more helpers to Date, Time and Fixnum

classes
This commit is contained in:
2010-07-26 14:08:22 +03:00
parent 9e35e7e9e9
commit 20429b3da8
2 changed files with 20 additions and 10 deletions

View File

@@ -64,4 +64,10 @@ describe Redistat::Date do
end
end
it "should add helper methods to Date, Time and Fixnum classes" do
Date.today.to_time.should == Time.parse(Date.today.to_s)
Time.now.to_i.to_time.should == Time.at(Time.now.to_i)
Date.today.to_rs.to_date.should == Date.today
end
end