Skip to content

Commit c05b4ea

Browse files
bmenegjberger
authored andcommitted
doc: reword testing guide paragraph
The commit 2b5293a 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.
1 parent 4e8cff6 commit c05b4ea

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/Mojolicious/Guides/Testing.pod

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -159,9 +159,9 @@ To test a L<Mojolicious::Lite> application, pass the file path to the applicatio
159159
use Mojo::File qw(curfile);
160160
my $t = Test::Mojo->new(curfile->dirname->sibling('myapp.pl'));
161161

162-
This object initializes a L<Mojo::UserAgent> object, loads the Mojolicious application C<Frogs>, binds and listens on a
163-
free TCP port (e.g., 32114), and starts the application event loop. When the L<Test::Mojo> object (C<$t>) goes out of
164-
scope, the application is stopped.
162+
The object initializes a L<Mojo::UserAgent> object, loads the Mojolicious application, binds and listens on a free TCP
163+
port (e.g., 32114), and starts the application event loop. When the L<Test::Mojo> object (C<$t>) goes out of scope, the
164+
application is stopped.
165165

166166
Relative URLs in the test object method assertions (C<get_ok>, C<post_ok>, etc.) will be sent to the Mojolicious
167167
application started by L<Test::Mojo>:

0 commit comments

Comments
 (0)