visionmedia/mocha — Issue #228: Rename before() to beforeAll()?
Author: johnnywengluu
Created: 2012-01-20 21:22:40+00:00
State: open

When throwing an error in before() hook I get this error message:

..

✖ 1 of 2 tests failed:

0) User #createUser "before all" hook:
Error: User exists
at /Volumes/Private/johnnyluu/Development/program/yobistore-web/support/service/yobistore/server/lib/db.coffee:126:29
at /Volumes/Private/johnnyluu/Development/program/yobistore-web/node_modules/async/lib/async.js:525:34
at Array.1 (/Volumes/Private/johnnyluu/Development/program/yobistore-web/node_modules/async/lib/async.js:449:34)
at EventEmitter._tickCallback (node.js:192:40)

It says "before all" and not "before" hook.

Perhaps we should rename before() to beforeAll() to stay consistent?