Sha256: d0a6b1a270f3f4af63dfe5938e3e128a8d8709a4217bf5e29b91c73c536024b5
Contents?: true
Size: 492 Bytes
Versions: 52
Compression:
Stored size: 492 Bytes
Contents
require File.expand_path('../../../spec_helper', __FILE__) require File.expand_path('../fixtures/methods', __FILE__) describe "Time#usec" do it "returns the microseconds for time" do Time.at(0).usec.should == 0 (Time.at(1.1) + 0.9).usec.should == 0 (Time.at(1.1) - 0.2).usec.should == 900000 end ruby_version_is "1.9" do it "returns the microseconds for time created by Time#local" do Time.local(1,2,3,4,5,Rational(6.78)).usec.should == 780000 end end end
Version data entries
52 entries across 52 versions & 2 rubygems