Sha256: 97d07de4d9e9a404d12b0f1330d30308a5021cbed585d3512b4784f19d885895
Contents?: true
Size: 457 Bytes
Versions: 7
Compression:
Stored size: 457 Bytes
Contents
require File.join(File.dirname(__FILE__), "/../../../../spec_helper.rb") describe Mongoid::Extensions::Time::Conversions do before do @time = Time.local(1976, 11, 19).utc end describe "#set" do context "when value is a string" do it "converts to a time" do Time.set(@time.to_s).should == @time end end end describe "#get" do it "returns the time" do Time.get(@time).should == @time end end end
Version data entries
7 entries across 7 versions & 1 rubygems