Sha256: fb3b4d8f32c3515ffb77e416582debb21a546226526dd9512b338493b0dd1cf7
Contents?: true
Size: 584 Bytes
Versions: 4
Compression:
Stored size: 584 Bytes
Contents
covers 'facets/time/stamp' testcase Time do # TODO: Problem with TIMEZONE. omit unit :stamp do t = Time.utc(2005,4,20,15,37) t.stamp.assert == "Wed Apr 20 15:37:00 PDT 2005" end unit :stamp => "long format" do t = Time.utc(2005,4,20,15,37) t.stamp(:long).assert == "April 20, 2005 15:37" end unit :stamp => "short format" do t = Time.utc(2005,4,20,15,37) t.stamp(:short).assert == "20 Apr 15:37" end metaunit :stamp => "long format" do Time.stamp(:long) end metaunit :stamp => "short format" do Time.stamp(:short) end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
facets-2.9.1 | test/core/time/test_stamp.rb |
facets-2.9.0 | test/core/time/test_stamp.rb |
facets-2.9.0.pre.2 | test/core/time/test_stamp.rb |
facets-2.9.0.pre.1 | test/core/time/test_stamp.rb |