I'm tidying up my Mojolicious tests and giving them properly descriptive names. As an example:
$t->get_ok( '/api/ninjablock', 'Run a GET against /api/ninjablock with no credentials' )
->status_is( 403, ' and it has correctly returned a 403' );
The test output looks like this, however:
ok 1 - GET /api/ninjablock
ok 2 - and it has correctly returned a 403
I assume I'm missing something obvious, but how do I make that first test show something other than GET /api/ninjablock
as the name?
Aucun commentaire:
Enregistrer un commentaire