Skip to content

Commit

Permalink
fixed test example formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Jan 3, 2012
1 parent 134a6af commit 3b7c6d2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 4 additions & 2 deletions lib/Mojolicious/Guides/Cookbook.pod
Expand Up @@ -306,8 +306,10 @@ L<Test::Mojo> API to be used.

# Test echo web service
my $t = Test::Mojo->new;
$t->websocket_ok('/echo')->send_message_ok('Hello Mojo!')
->message_is('echo: Hello Mojo!')->finish_ok;
$t->websocket_ok('/echo')
->send_message_ok('Hello Mojo!')
->message_is('echo: Hello Mojo!')
->finish_ok;

=head2 EventSource

Expand Down
6 changes: 4 additions & 2 deletions lib/Mojolicious/Guides/Growing.pod
Expand Up @@ -293,7 +293,8 @@ on L<Mojo::DOM>.
my $t = Test::Mojo->new->max_redirects(1);

# Test if the HTML login form exists
$t->get_ok('/')->status_is(200)
$t->get_ok('/')
->status_is(200)
->element_exists('form input[name="user"]')
->element_exists('form input[name="pass"]')
->element_exists('form input[type="submit"]');
Expand Down Expand Up @@ -681,7 +682,8 @@ help with home directory detection, so C<t/login.t> can be simplified.
# Load application class
my $t = Test::Mojo->new('MyApp')->max_redirects(1);

$t->get_ok('/')->status_is(200)
$t->get_ok('/')
->status_is(200)
->element_exists('form input[name="user"]')
->element_exists('form input[name="pass"]')
->element_exists('form input[type="submit"]');
Expand Down

0 comments on commit 3b7c6d2

Please sign in to comment.