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

Version Path
ende-0.4.25 vendor/components/indefinido-indemma/spec/record/queryable_spec.js
ende-0.4.24 vendor/components/indefinido-indemma/spec/record/queryable_spec.js
ende-0.4.23 vendor/components/indefinido-indemma/spec/record/queryable_spec.js
ende-0.5.1 components/indefinido/indemma/master/spec/record/queryable_spec.js
ende-0.4.22 vendor/components/indefinido-indemma/spec/record/queryable_spec.js
ende-0.4.21 vendor/components/indefinido-indemma/spec/record/queryable_spec.js
ende-0.5.0 vendor/components/indefinido-indemma/spec/record/queryable_spec.js
ende-0.4.20 vendor/components/indefinido-indemma/spec/record/queryable_spec.js
ende-0.4.19 vendor/components/indefinido-indemma/spec/record/queryable_spec.js
ende-0.4.18 vendor/components/indefinido-indemma/spec/record/queryable_spec.js
ende-0.4.17 vendor/components/indefinido-indemma/spec/record/queryable_spec.js
ende-0.4.16 vendor/components/indefinido-indemma/spec/record/queryable_spec.js
ende-0.3.13 vendor/components/indefinido-indemma/spec/record/queryable_spec.js
ende-0.3.12 vendor/components/indefinido-indemma/spec/record/queryable_spec.js
ende-0.3.11 vendor/components/indefinido-indemma/spec/record/queryable_spec.js
ende-0.4.15 vendor/components/indefinido-indemma/spec/record/queryable_spec.js
ende-0.4.14 vendor/components/indefinido-indemma/spec/record/queryable_spec.js
ende-0.4.13 vendor/components/indefinido-indemma/spec/record/queryable_spec.js
ende-0.4.12 vendor/components/indefinido-indemma/spec/record/queryable_spec.js
ende-0.4.11 vendor/components/indefinido-indemma/spec/record/queryable_spec.js