blob: 03497c700bd01cda714b799d8eb5a1d6df4711e5 (
plain)
1
2
3
4
5
6
7
8
9
|
describe :time_to_i, shared: true do
it "returns the value of time as an integer number of seconds since epoch" do
Time.at(0).send(@method).should == 0
end
it "doesn't return an actual number of seconds in time" do
Time.at(65.5).send(@method).should == 65
end
end
|