Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
modernized some examples
  • Loading branch information
kraih committed Apr 10, 2013
1 parent 3022055 commit 9aa2b4c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 12 deletions.
16 changes: 9 additions & 7 deletions lib/Mojolicious/Guides/Growing.pod
Expand Up @@ -320,19 +320,21 @@ against your application.
$ ./myapp.pl test
$ ./myapp.pl test t/login.t

To make the tests less noisy and limit log output to just C<error> messages
you can also add a line like this.

$t->app->log->level('error');

Quick C<GET> requests can be performed right from the command line.
Or perform quick requests right from the command line.

$ ./myapp.pl get /
Wrong username or password.

$ ./myapp.pl get -v '/?user=sri&pass=secr3t'
GET /?user=sri&pass=secr3t HTTP/1.1
User-Agent: Mojolicious (Perl)
Connection: keep-alive
Accept-Encoding: gzip
Content-Length: 0
Host: localhost:59472

HTTP/1.1 200 OK
Connection: Keep-Alive
Connection: keep-alive
Date: Sun, 18 Jul 2010 13:09:58 GMT
Server: Mojolicious (Perl)
Content-Length: 12
Expand Down
5 changes: 0 additions & 5 deletions lib/Mojolicious/Lite.pm
Expand Up @@ -931,11 +931,6 @@ Run all unit tests with the C<test> command.
$ ./myapp.pl test
To make your tests more noisy and show you all log messages you can also
change the application log level directly in your test files.
$t->app->log->level('debug');
=head2 More
You can continue with L<Mojolicious::Guides> now, and don't forget to have
Expand Down

0 comments on commit 9aa2b4c

Please sign in to comment.