Sha256: 5b737d8c61fdba2e84c4bd8d8c32f09dc7ab65ac2545d6df87b707521a3af583
Contents?: true
Size: 475 Bytes
Versions: 83
Compression:
Stored size: 475 Bytes
Contents
require File.dirname(File.join(__rhoGetCurrentDir(), __FILE__)) + '/../../spec_helper' require File.dirname(File.join(__rhoGetCurrentDir(), __FILE__)) + '/fixtures/methods' describe "Time#to_a" do it "returns a 10 element array representing the deconstructed time" do # Testing with America/Regina here because it doesn't have DST. with_timezone("America/Regina") do Time.at(0).to_a.should == [0, 0, 18, 31, 12, 1969, 3, 365, false, "CST"] end end end
Version data entries
83 entries across 83 versions & 1 rubygems