Skip to content

Commit

Permalink
fixed update service
Browse files Browse the repository at this point in the history
  • Loading branch information
leadVisionary committed May 5, 2012
1 parent 1daf303 commit 4f3ecf1
Showing 1 changed file with 9 additions and 9 deletions.
@@ -1,15 +1,15 @@
update = require '../update'
MemoryArchive = require './mocks/MemoryArchive'
createData = require './mocks/createData'

require 'should'

describe 'Update record for some data', ->
describe '#update', ->
it 'should return an updated record', (done) ->
data = createData
archie = new MemoryArchive()
created = archie.create(data, ( ->))
result = update(1, created, {name:"Joseph"})
result.name.should.eql "Joseph"
archie.recordCount.should.eql 1
describe '#update', ->
it 'should return an updated record', ->
data = createData()
archie = new MemoryArchive()
created = archie.create(data, ( ->))
result = update(1, archie, {name:"Joseph"})
result.name.should.eql "Joseph"
newSize = archie.getSize()
newSize.should.eql 1

0 comments on commit 4f3ecf1

Please sign in to comment.