Sha256: 6395484cf424bf9230f9ec44d3f63fa571e2f1c1a9c6b0641ea79676e190da0c
Contents?: true
Size: 761 Bytes
Versions: 54
Compression:
Stored size: 761 Bytes
Contents
root = exports ? window persistable = require 'indemma/lib/record/persistable' describe 'persistable', -> describe 'model', -> it 'should set the persistable key', -> model.should.have.property 'persistable', true describe '#find', -> beforeEach -> @person = model.call resource : 'person' has_many : 'friends' belongs_to: 'corporation' @arthur = @person _id: '1' name: 'Arthur Philip Dent' it 'should call try to store a record after saving', (done) -> sinon.stub(@person.storage, 'store').returns true @arthur.save => expect(@person.storage.store.calledOnce).to.be.true done() @person.storage.store.restore()
Version data entries
54 entries across 54 versions & 1 rubygems