Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
slightly more consistent formatting
  • Loading branch information
kraih committed Aug 13, 2017
1 parent 998f77b commit aefc184
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Mojolicious/Guides/Testing.pod
Expand Up @@ -249,7 +249,7 @@ when the C<enable_weather> configuration value is set:
# Normal route to controller
$r->get('/')->to('example#welcome');

# NEW: this route only exists if 'enable_weather' is set in the configuration
# NEW: this route only exists if "enable_weather" is set in the configuration
if ($config->{enable_weather}) {
$r->get('/weather' => sub { shift->render(text => "It's hot! 🔥") }
}
Expand Down Expand Up @@ -623,7 +623,7 @@ L<Test::Mojo> WebSocket API to be used:
$t->websocket_ok('/echo.json')
->send_ok({json => {test => [1, 2, 3]}})
->message_ok
->json_message_is('/test', [1, 2, 3])
->json_message_is('/test' => [1, 2, 3])
->finish_ok;

done_testing();
Expand Down

0 comments on commit aefc184

Please sign in to comment.