Sha256: 4ea9cf48198e4d0abed3d92fb32a52d23a4b81ba161e088f001eeb1b58143093

Contents?: true

Size: 820 Bytes

Versions: 58

Compression:

Stored size: 820 Bytes

Contents

var root;

root = typeof exports !== "undefined" && exports !== null ? exports : window;

describe('record', function() {
  var record;

  record = root.record;
  return it('should create a record', function() {
    var arthur;

    arthur = record.call({
      resource: 'person'
    });
    return arthur.should.be.object;
  });
});

describe('model', function() {
  var model;

  model = root.model;
  return describe('#()', function() {
    xit('should throw exception if no resource is passed');
    return it('should create a record factory', function() {
      var john, person;

      person = model.call({
        resource: 'person'
      });
      person.should.be.object;
      john = person();
      john.should.be.object;
      return john.resource.should.have.property('name', 'person');
    });
  });
});

Version data entries

58 entries across 58 versions & 1 rubygems

Version Path
ende-0.4.10 vendor/components/indefinido-indemma/spec/record_spec.js
ende-0.4.9 vendor/components/indefinido-indemma/spec/record_spec.js
ende-0.4.8 vendor/components/indefinido-indemma/spec/record_spec.js
ende-0.4.7 vendor/components/indefinido-indemma/spec/record_spec.js
ende-0.4.6 vendor/components/indefinido-indemma/spec/record_spec.js
ende-0.4.5 vendor/components/indefinido-indemma/spec/record_spec.js
ende-0.4.4 vendor/components/indefinido-indemma/spec/record_spec.js
ende-0.4.3 vendor/components/indefinido-indemma/spec/record_spec.js
ende-0.4.2 vendor/components/indefinido-indemma/spec/record_spec.js
ende-0.4.1 vendor/components/indefinido-indemma/spec/record_spec.js
ende-0.4.0 vendor/components/indefinido-indemma/spec/record_spec.js
ende-0.3.10 vendor/components/indefinido-indemma/spec/record_spec.js
ende-0.3.9 vendor/components/indefinido-indemma/spec/record_spec.js
ende-0.3.8 vendor/components/indefinido-indemma/spec/record_spec.js
ende-0.3.7 vendor/components/indefinido-indemma/spec/record_spec.js
ende-0.3.6 vendor/components/indefinido-indemma/spec/record_spec.js
ende-0.3.5 vendor/components/indefinido-indemma/spec/record_spec.js
ende-0.3.4 vendor/components/indefinido-indemma/spec/record_spec.js
ende-0.3.3 vendor/components/indefinido-indemma/spec/record_spec.js
ende-0.3.2 vendor/components/indefinido-indemma/spec/record_spec.js