Sha256: 44fadb6e442b0f6829ce609ea97c3eb2ad71f35d74041908776cd37f513e922d
Contents?: true
Size: 975 Bytes
Versions: 54
Compression:
Stored size: 975 Bytes
Contents
var queryable, root; root = typeof exports !== "undefined" && exports !== null ? exports : window; queryable = require('indemma/lib/record/queryable'); describe('queryable', function() { return describe('model', function() { beforeEach(function() { return this.person = model.call({ resource: 'person' }); }); it('should set the queryable key', function() { return model.should.have.property('queryable', true); }); it('should create a storage', function() { return this.person.should.have.property('storage'); }); return describe('#find', function() { beforeEach(function() { this.arthur = this.person({ _id: '1', name: 'Arthur Philip Dent' }); return this.arthur.save(); }); return it('should retrieve a record by key', function() { return this.person.find('1').should.have.property('name', this.arthur.name); }); }); }); });
Version data entries
54 entries across 54 versions & 1 rubygems