Sha256: bd35d5dee14ad886970caa5b89c24a603e601a02943b046210928f2cdcc1dad5
Contents?: true
Size: 532 Bytes
Versions: 83
Compression:
Stored size: 532 Bytes
Contents
require File.dirname(File.join(__rhoGetCurrentDir(), __FILE__)) + '/../../spec_helper' require File.dirname(File.join(__rhoGetCurrentDir(), __FILE__)) + '/fixtures/methods' describe "Time#dup" do it "returns a Time object that represents the same time" do t = Time.at(100) t.dup.tv_sec.should == t.tv_sec end it "copies the gmt state flag" do Time.now.gmtime.dup.gmt?.should == true end it "returns an independent Time object" do t = Time.now t2 = t.dup t.gmtime t2.gmt?.should == false end end
Version data entries
83 entries across 83 versions & 1 rubygems