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.25 vendor/components/indefinido-indemma/spec/record_spec.js
ende-0.4.24 vendor/components/indefinido-indemma/spec/record_spec.js
ende-0.4.23 vendor/components/indefinido-indemma/spec/record_spec.js
ende-0.5.1 components/indefinido/indemma/master/spec/record_spec.js
ende-0.4.22 vendor/components/indefinido-indemma/spec/record_spec.js
ende-0.4.21 vendor/components/indefinido-indemma/spec/record_spec.js
ende-0.5.0 vendor/components/indefinido-indemma/spec/record_spec.js
ende-0.4.20 vendor/components/indefinido-indemma/spec/record_spec.js
ende-0.4.19 vendor/components/indefinido-indemma/spec/record_spec.js
ende-0.4.18 vendor/components/indefinido-indemma/spec/record_spec.js
ende-0.4.17 vendor/components/indefinido-indemma/spec/record_spec.js
ende-0.4.16 vendor/components/indefinido-indemma/spec/record_spec.js
ende-0.3.13 vendor/components/indefinido-indemma/spec/record_spec.js
ende-0.3.12 vendor/components/indefinido-indemma/spec/record_spec.js
ende-0.3.11 vendor/components/indefinido-indemma/spec/record_spec.js
ende-0.4.15 vendor/components/indefinido-indemma/spec/record_spec.js
ende-0.4.14 vendor/components/indefinido-indemma/spec/record_spec.js
ende-0.4.13 vendor/components/indefinido-indemma/spec/record_spec.js
ende-0.4.12 vendor/components/indefinido-indemma/spec/record_spec.js
ende-0.4.11 vendor/components/indefinido-indemma/spec/record_spec.js