Sha256: 0b5d5c582d8981ecd3378a6469cfe336a7368094b141d8ae39b4b053606d86fd
Contents?: true
Size: 487 Bytes
Versions: 19
Compression:
Stored size: 487 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 after do Person.validations.clear end it "does not set the value" do person.save.should be_true end end end end
Version data entries
19 entries across 19 versions & 1 rubygems