Sha256: d0c1416bfe1e9b26f3fcdf3ccb1d11100e2e8beeec63ea4f1a7fbc3aaf655515

Contents?: true

Size: 341 Bytes

Versions: 15

Compression:

Stored size: 341 Bytes

Contents

require 'spec_helper'

describe "Core Extensions" do
  describe "Time" do
    let(:doc) do
      Doc do
        key :created_at, Time
      end
    end

    it "should match the precision of Time types stored in the database" do
      d = doc.create(:created_at => Time.now)
      d.created_at.should == d.reload.created_at
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
mongo_mapper-0.17.0 spec/functional/extensions_spec.rb
mongo_mapper-0.16.0 spec/functional/extensions_spec.rb
mongo_mapper-0.15.6 spec/functional/extensions_spec.rb
mongo_mapper-0.15.5 spec/functional/extensions_spec.rb
mongo_mapper-0.15.4 spec/functional/extensions_spec.rb
mongo_mapper-0.15.3 spec/functional/extensions_spec.rb
mongo_mapper-0.15.2 spec/functional/extensions_spec.rb
mongo_mapper-0.15.1 spec/functional/extensions_spec.rb
mongo_mapper-0.15.0 spec/functional/extensions_spec.rb
mongo_mapper-0.14.0 spec/functional/extensions_spec.rb
mongo_mapper-0.14.0.rc1 spec/functional/extensions_spec.rb
mongo_mapper-0.13.1 spec/functional/extensions_spec.rb
mongo_mapper-0.13.0 spec/functional/extensions_spec.rb
mongo_mapper-0.13.0.beta2 spec/functional/extensions_spec.rb
mongo_mapper-0.13.0.beta1 spec/functional/extensions_spec.rb