Sha256: 9e9f99f2a87b9f4836a52f03144f8bed6a5216a0c4320a56664f47ceef9c9f45

Contents?: true

Size: 352 Bytes

Versions: 6

Compression:

Stored size: 352 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.to_s.should == d.reload.created_at.to_s
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
mark_mapper-0.0.6 spec/functional/extensions_spec.rb
mark_mapper-0.0.5 spec/functional/extensions_spec.rb
mark_mapper-0.0.4 spec/functional/extensions_spec.rb
mark_mapper-0.0.3 spec/functional/extensions_spec.rb
mark_mapper-0.0.2 spec/functional/extensions_spec.rb
mark_mapper-0.0.1 spec/functional/extensions_spec.rb