 test("GET /:id/discard_draft discards all drafts and renders the published version", (done) ->
   theIndicator = originalPage = draftPage =null
 
-  helpers.createUser(
-    email: "hats"
-    password: "boats"
-  ).then( (user) ->
-    passportStub.login user
-
-    helpers.createIndicatorModels([
-      title: 'An indicator'
-    ])
-  ).then( (indicators) ->
+  user = new User(email: "hats", password: "boats")
+  passportStub.login user
+
+  helpers.createIndicatorModels([
+    title: 'An indicator'
+  ]).then( (indicators) ->
 
     theIndicator = indicators[0]
 


Indicator = require('../../models/indicator').model
Page = require('../../models/page').model

suite('Indicator show')


  viewable', (done) ->
  theIndicator = originalPage = draftPage = null

  user = new User(email: "hats", password: "boats")
  passportStub.login user

  helpers.createIndicatorModels([
    title: 'An indicator'
  ]).then( (indicators) ->

    theIndicator = indicators[0]

