Sha256: afe1f34377e133de0fa2630d6203b8d10d1eedc5468f29050e53a78f5eca7c4f

Contents?: true

Size: 531 Bytes

Versions: 58

Compression:

Stored size: 531 Bytes

Contents

root = exports ? window

describe 'record',  ->
  record = root.record

  it 'should create a record', ->
    arthur = record.call resource: 'person'
    arthur.should.be.object

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

  describe '#()', ->

    xit 'should throw exception if no resource is passed'

    it 'should create a record factory', ->
      person = model.call resource: 'person'
      person.should.be.object

      john = person()
      john.should.be.object
      john.resource.should.have.property 'name', 'person'

Version data entries

58 entries across 58 versions & 1 rubygems

Version Path
ende-0.3.1 vendor/components/indefinido-indemma/src/spec/record_spec.coffee
ende-0.3.0 vendor/components/indefinido-indemma/src/spec/record_spec.coffee
ende-0.2.21 vendor/components/indefinido-indemma/src/spec/record_spec.coffee
ende-0.2.20 vendor/components/indefinido-indemma/src/spec/record_spec.coffee
ende-0.2.19 vendor/components/indefinido-indemma/src/spec/record_spec.coffee
ende-0.2.18 vendor/components/indefinido-indemma/src/spec/record_spec.coffee
ende-0.2.17 vendor/components/indefinido-indemma/src/spec/record_spec.coffee
ende-0.2.16 vendor/components/indefinido-indemma/src/spec/record_spec.coffee
ende-0.2.15 vendor/components/indefinido-indemma/src/spec/record_spec.coffee
ende-0.2.14 vendor/components/indefinido-indemma/src/spec/record_spec.coffee
ende-0.2.13 vendor/components/indefinido-indemma/src/spec/record_spec.coffee
ende-0.2.12 vendor/components/indefinido-indemma/src/spec/record_spec.coffee
ende-0.2.11 vendor/components/indefinido-indemma/src/spec/record_spec.coffee
ende-0.2.10 vendor/components/indefinido-indemma/src/spec/record_spec.coffee
ende-0.2.3 vendor/components/indefinido-indemma/src/spec/record_spec.coffee
ende-0.2.2 vendor/components/indefinido-indemma/src/spec/record_spec.coffee
ende-0.2.1 vendor/components/indefinido-indemma/src/spec/record_spec.coffee
ende-0.2.0 vendor/components/indefinido-indemma/src/spec/record_spec.coffee