Sha256: b52ec49628cd21f224318c458c6dcb2d46c8d511a231c96273241e8c47ea7c7e
Contents?: true
Size: 659 Bytes
Versions: 2
Compression:
Stored size: 659 Bytes
Contents
var root; root = typeof exports !== "undefined" && exports !== null ? exports : window; require('indemma/lib/record/translationable.js'); describe('model', function() { var model, person; model = root.model; person = null; beforeEach(function() { return person = model.call({ resource: 'person', name: String, translation: { attributes: { name: 'Batata' } } }); }); return describe('#human_attribute_name', function() { return it('should return the translated attribute name', function() { return person.human_attribute_name('name').should.be.eq('Batata'); }); }); });
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ende-0.5.22 | components/indefinido/indemma/master/spec/record/translationable.js |
ende-0.5.21 | components/indefinido/indemma/master/spec/record/translationable.js |