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.3.1 vendor/components/indefinido-indemma/spec/record/queryable_spec.js
ende-0.3.0 vendor/components/indefinido-indemma/spec/record/queryable_spec.js
ende-0.2.21 vendor/components/indefinido-indemma/spec/record/queryable_spec.js
ende-0.2.20 vendor/components/indefinido-indemma/spec/record/queryable_spec.js
ende-0.2.19 vendor/components/indefinido-indemma/spec/record/queryable_spec.js
ende-0.2.18 vendor/components/indefinido-indemma/spec/record/queryable_spec.js
ende-0.2.17 vendor/components/indefinido-indemma/spec/record/queryable_spec.js
ende-0.2.16 vendor/components/indefinido-indemma/spec/record/queryable_spec.js
ende-0.2.15 vendor/components/indefinido-indemma/spec/record/queryable_spec.js
ende-0.2.14 vendor/components/indefinido-indemma/spec/record/queryable_spec.js
ende-0.2.13 vendor/components/indefinido-indemma/spec/record/queryable_spec.js
ende-0.2.12 vendor/components/indefinido-indemma/spec/record/queryable_spec.js
ende-0.2.11 vendor/components/indefinido-indemma/spec/record/queryable_spec.js
ende-0.2.10 vendor/components/indefinido-indemma/spec/record/queryable_spec.js