Sha256: 32b5b166ba451e96bf5b0fd0c63d42586a9e71c97c6698d7fd0f85b51556445d

Contents?: true

Size: 1015 Bytes

Versions: 54

Compression:

Stored size: 1015 Bytes

Contents

root = exports ? window

storable = require 'indemma/lib/record/storable'

describe 'storable',  ->
  it 'should set the storable key', ->
    model.should.have.property 'storable', true

  beforeEach ->
    @storage = storable()

  describe "#store", ->

    describe "write", ->
      it "should write object on deep storage"
      # storage.store 'users.1', data

      it "should write object on storage", ->
        data = name: 'Arthur Dent'
        @storage.store '1', data
        @storage.writes.should.be.eq 1
        @storage.database['1'].should.be.eq data

      it "should mark an object as sustained",  ->
        data = name: 'Arthur Dent'
        @storage.store '1', data
        data.should.have.property 'sustained', true


    describe "read", ->
      data = null

      beforeEach ->
        data = name: 'Arthur Dent'
        @storage.store '1', data

      it "should save object on storage", ->
        @storage.store('1').should.be.eq data

      it "should unmark an object as sustained"

Version data entries

54 entries across 54 versions & 1 rubygems

Version Path
ende-0.4.25 vendor/components/indefinido-indemma/src/spec/record/storable_spec.coffee
ende-0.4.24 vendor/components/indefinido-indemma/src/spec/record/storable_spec.coffee
ende-0.4.23 vendor/components/indefinido-indemma/src/spec/record/storable_spec.coffee
ende-0.5.1 components/indefinido/indemma/master/src/spec/record/storable_spec.coffee
ende-0.4.22 vendor/components/indefinido-indemma/src/spec/record/storable_spec.coffee
ende-0.4.21 vendor/components/indefinido-indemma/src/spec/record/storable_spec.coffee
ende-0.5.0 vendor/components/indefinido-indemma/src/spec/record/storable_spec.coffee
ende-0.4.20 vendor/components/indefinido-indemma/src/spec/record/storable_spec.coffee
ende-0.4.19 vendor/components/indefinido-indemma/src/spec/record/storable_spec.coffee
ende-0.4.18 vendor/components/indefinido-indemma/src/spec/record/storable_spec.coffee
ende-0.4.17 vendor/components/indefinido-indemma/src/spec/record/storable_spec.coffee
ende-0.4.16 vendor/components/indefinido-indemma/src/spec/record/storable_spec.coffee
ende-0.3.13 vendor/components/indefinido-indemma/src/spec/record/storable_spec.coffee
ende-0.3.12 vendor/components/indefinido-indemma/src/spec/record/storable_spec.coffee
ende-0.3.11 vendor/components/indefinido-indemma/src/spec/record/storable_spec.coffee
ende-0.4.15 vendor/components/indefinido-indemma/src/spec/record/storable_spec.coffee
ende-0.4.14 vendor/components/indefinido-indemma/src/spec/record/storable_spec.coffee
ende-0.4.13 vendor/components/indefinido-indemma/src/spec/record/storable_spec.coffee
ende-0.4.12 vendor/components/indefinido-indemma/src/spec/record/storable_spec.coffee
ende-0.4.11 vendor/components/indefinido-indemma/src/spec/record/storable_spec.coffee