Sha256: 2939ad823bf72c6c3915be805f25df9b3ce3b757a63c619323fd4d78e4e8d161

Contents?: true

Size: 446 Bytes

Versions: 2

Compression:

Stored size: 446 Bytes

Contents

root = exports ? window

require 'indemma/lib/record/translationable.js'

describe 'model',  ->
  model  = root.model
  person = null

  beforeEach ->
    person = model.call
      resource  : 'person'
      name: String
      translation:
        attributes:
          name: 'Batata'

  describe '#human_attribute_name', ->
    it 'should return the translated attribute name', ->
      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/src/spec/record/translationable.coffee
ende-0.5.21 components/indefinido/indemma/master/src/spec/record/translationable.coffee