Sha256: 66f9a5ab9eea26f847366d1d289a25810d76e1c8904dc1526ad033ce8af2a4a3
Contents?: true
Size: 338 Bytes
Versions: 3
Compression:
Stored size: 338 Bytes
Contents
require File.join(File.dirname(__FILE__), "/../../../../spec_helper.rb") describe Mongoid::Extensions::Time::Conversions do describe "#cast" do context "when value is a string" do it "converts to a time" do time = Time.local(1976, 11, 19).utc Time.cast(time.to_s).should == time end end end end
Version data entries
3 entries across 3 versions & 1 rubygems