codecombat/test/server/integration/models/article.spec.coffee

13 lines
319 B
CoffeeScript
Raw Normal View History

2014-02-03 15:55:09 -05:00
require '../../common'
2014-01-03 13:32:13 -05:00
describe 'Article', ->
it 'clears things first', (done) ->
Article.remove {}, (err) ->
expect(err).toBeNull()
done()
it 'can be saved', (done) ->
article = new Article(name:'List Comprehension', body:"A programmer's best friend.")
article.save (err) ->
done()