     done()
     
   it 'returns 403 if the user tries to view another user\'s prepaids', utils.wrap (done) ->
-    anotherUser = yield utils.initUser() 
+    anotherUser = yield utils.initUser()
     url = getURL("/db/prepaid?creator=#{anotherUser.id}")
     [res, body] = yield request.getAsync({uri: url, json: true})
     expect(res.statusCode).toBe(403)

    
      # Spawn all requests at once!
      requests = []
      options = { 
        url: getURL('/db/subscription/-/subscribe_prepaid')
        json: { ppc: prepaid.code }
      }
      for thread in threads
        requests.push(thread.request.postAsync(options))
        
      # Wait until all requests finish, make sure all but one succeeded 
      responses = yield requests
      redeemed = _.size(_.where(responses, {statusCode: 200}))
      errors = _.size(_.where(responses, {statusCode: 403}))

    done()


describe 'GET /db/prepaid?creator=:id', ->
  beforeEach utils.wrap (done) ->
    yield utils.clearModels([Course, CourseInstance, Payment, Prepaid, User])
