Sha256: 83af6f6b369d83248e1c1bcbe071a3393e42a3c133f28ea7510e8973084167bb
Contents?: true
Size: 373 Bytes
Versions: 52
Compression:
Stored size: 373 Bytes
Contents
require File.expand_path('../../../spec_helper', __FILE__) describe "Time#to_r" do ruby_version_is "1.9" do it "returns the rational number of seconds + usecs since the epoch" do Time.at(1.1).to_r.should == 1.1.to_r end it "returns the numerator of the rational number when the denominator is 1" do Time.at(2).to_r.should == 2 end end end
Version data entries
52 entries across 52 versions & 2 rubygems