Sha256: d6483884bcc997d6b721af5b3842a93e66cb670738f8ba478e7305c264122869
Contents?: true
Size: 409 Bytes
Versions: 9
Compression:
Stored size: 409 Bytes
Contents
require "spec_helper" describe Mongoid::Attributes do context "when persisting nil attributes" do before do @person = Person.create(:score => nil, :ssn => "555-66-7777") end after do Person.delete_all end it "the field should exist with a nil value" do from_db = Person.find(@person.id) from_db.attributes.has_key?(:score).should be_true end end end
Version data entries
9 entries across 9 versions & 2 rubygems