Sha256: aae8329cfe6803b10a858f66b01906f8e39394751b111b0d684df222ecbc70c5
Contents?: true
Size: 755 Bytes
Versions: 2
Compression:
Stored size: 755 Bytes
Contents
var root; root = typeof exports !== "undefined" && exports !== null ? exports : window; require('indemma/lib/record/validatable.js'); describe('model #() validates presence of', function() { return describe('basic usage', function() { var model, person; model = root.model; person = null; beforeEach(function() { return person = model.call({ resource: 'person', name: String, belongs_to: 'corporation', validates_presence_of: 'name' }); }); afterEach(function() { return person.validators.length = 0; }); return describe('#validate', function() { return it('should add error to record when required field is empty (null, undefined or \'\')'); }); }); });
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ende-0.5.22 | components/indefinido/indemma/master/spec/record/validations/presence_spec.js |
ende-0.5.21 | components/indefinido/indemma/master/spec/record/validations/presence_spec.js |