Sha256: 43d1adc5cddf68344a9d821edd79a376a870926a3ab545637560e99a8b7865cc
Contents?: true
Size: 424 Bytes
Versions: 52
Compression:
Stored size: 424 Bytes
Contents
require File.expand_path('../../../spec_helper', __FILE__) require File.expand_path('../fixtures/methods', __FILE__) describe "Time#localtime" do it "returns the local representation of time" do # Testing with America/Regina here because it doesn't have DST. with_timezone("CST", -6) do t = Time.gm(2007, 1, 9, 12, 0, 0) t.localtime t.should == Time.local(2007, 1, 9, 6, 0, 0) end end end
Version data entries
52 entries across 52 versions & 2 rubygems