Skip to content

Instantly share code, notes, and snippets.

@manveru
Created July 8, 2010 16:06
Show Gist options
  • Save manveru/468225 to your computer and use it in GitHub Desktop.
Save manveru/468225 to your computer and use it in GitHub Desktop.
vows: require 'vows'
assert: require 'assert'
Kimochi: require './kimochi'
model: Kimochi.connect 'vows_spec'
vows.describe('Kimochi',
{ 'A model creates the database': {
topic: -> model.create @callback
'without errors': (result) ->
assert.deepEqual result, {doc: {ok: true}, ok: true}
}},
{ 'A model destroys the database': {
topic: -> model.destroy @callback
'without errors': (result) ->
assert.deepEqual result, {doc: {ok: true}, ok: true}
}}).export(module)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment