From c05b4ea9a48cecd61ec0fbbc46ab58d8741aa32b Mon Sep 17 00:00:00 2001 From: Bruno Meneguele Date: Tue, 9 Nov 2021 22:12:13 -0300 Subject: [PATCH] doc: reword testing guide paragraph The commit 2b5293a14290f1e0b679b527534d5d1396ec624b added the Mojolicious::Lite testing snippet that loads the application from a file as an alternative to the snippet before that. However, the paragraph that explains the details for both snippets explicitly mentions the 'Frogs' application, which is used only in the first snippet, creating a possible confusion for some readers that may wonder if that explanation is also valid for the Mojolicious::Lite snippet. This patch removes the explicitly mention of 'Frogs' from the paragraph and also make change the 'This object initializes' to 'The object initializes' to give a more generic meaning, including both snippets. --- lib/Mojolicious/Guides/Testing.pod | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/Mojolicious/Guides/Testing.pod b/lib/Mojolicious/Guides/Testing.pod index 06955f6840..212a31adb7 100644 --- a/lib/Mojolicious/Guides/Testing.pod +++ b/lib/Mojolicious/Guides/Testing.pod @@ -159,9 +159,9 @@ To test a L application, pass the file path to the applicatio use Mojo::File qw(curfile); my $t = Test::Mojo->new(curfile->dirname->sibling('myapp.pl')); -This object initializes a L object, loads the Mojolicious application C, binds and listens on a -free TCP port (e.g., 32114), and starts the application event loop. When the L object (C<$t>) goes out of -scope, the application is stopped. +The object initializes a L object, loads the Mojolicious application, binds and listens on a free TCP +port (e.g., 32114), and starts the application event loop. When the L object (C<$t>) goes out of scope, the +application is stopped. Relative URLs in the test object method assertions (C, C, etc.) will be sent to the Mojolicious application started by L: