Sha256: 6c18316cffcf3693a45bef01574a2a9a84a097c47e88c9448245ad00af77f294
Contents?: true
Size: 426 Bytes
Versions: 18
Compression:
Stored size: 426 Bytes
Contents
require "spec_helper" require "time" describe Time do describe "#clipped_iso8601" do it "returns a shortened version of the ISO8601 datetime" do expect(Time.now.clipped_iso8601).to match(/\A\d{4}-\d{2}-\d{2}T\d{2}:\d{2}\z/) end end describe "#to_s" do it "returns the clipped ISO 8601 time" do the_time = Time.now expect(the_time.to_s).to eql(the_time.clipped_iso8601) end end end
Version data entries
18 entries across 18 versions & 1 rubygems