 
 Indicator = require('../../models/indicator').model
 Page = require('../../models/page').model
+User = require('../../models/user').model
 
 suite('Indicator show')
 

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) ->

    theIndicator = indicators[0]


  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]

