Sha256: da87d12add5273ba7fd1afc44aaa71ae698f2ba9b884b99de1d7d0f4038f23a8
Contents?: true
Size: 752 Bytes
Versions: 58
Compression:
Stored size: 752 Bytes
Contents
var root; root = typeof exports !== "undefined" && exports !== null ? exports : window; require('indemma/lib/record/validatable'); 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
58 entries across 58 versions & 1 rubygems