Sha256: b1575a4fb47d82cf02abbeec58ee42ef3f766f9f951bab3d16015ef2a50949d5
Contents?: true
Size: 428 Bytes
Versions: 4
Compression:
Stored size: 428 Bytes
Contents
require "spec_helper" describe Mongoid::Extensions do context "setting floating point numbers" do context "when value is an empty string" do let(:person) { Person.new(:ssn => "555555555555555") } before do Person.validates_numericality_of :blood_alcohol_content, :allow_blank => true end it "does not set the value" do person.save.should be_true end end end end
Version data entries
4 entries across 4 versions & 3 rubygems