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

14 lines
322 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) ->
2014-06-30 22:16:26 -04:00
article = new Article(name: 'List Comprehension', body: "A programmer's best friend.")
2014-01-03 13:32:13 -05:00
article.save (err) ->
2014-06-30 22:16:26 -04:00
done()