 )
 
 dropDatabase = (connection, done) ->
-  Report.remove().exec()
-  Indicator.remove().exec()
-  Narrative.remove().exec()
-  Section.remove().exec()
-  Visualisation.remove().exec()
+  models = [
+    Report,
+    Indicator,
+    Narrative,
+    Section,
+    Visualisation
+  ]
+
+  for model in models
+    model
+      .remove()
+      .exec()
+
   done()
 
 beforeEach( (done) ->

mongoose = require('mongoose')
_ = require('underscore')
async = require('async')

before( (done) ->
  app.start 3001, (err, server) ->


exports.appurl = (path) ->
  url.resolve('http://localhost:3001', path)

exports.createReport = (attributes, callback) ->
  if arguments.length == 1
