Skip to content

Commit

Permalink
mention that Test::Mojo is based on Mojo::UserAgent
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Nov 15, 2014
1 parent 42c388f commit 4e169a5
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion lib/Mojo/Server.pm
Expand Up @@ -184,7 +184,7 @@ the following new ones.
=head2 build_app
my $app = $server->build_app('Mojo::HelloWorld');
my $app = $server->build_app('MyApp');
Build application from class.
Expand Down
4 changes: 2 additions & 2 deletions lib/Mojo/UserAgent/Server.pm
Expand Up @@ -95,9 +95,9 @@ implements the following new ones.
=head2 app
my $app = Mojo::UserAgent::Server->app;
Mojo::UserAgent::Server->app(MyApp->new);
Mojo::UserAgent::Server->app(Mojolicious->new);
my $app = $server->app;
$server = $server->app(MyApp->new);
$server = $server->app(Mojolicious->new);
Application this server handles, instance specific applications override the
global default.
Expand Down
2 changes: 1 addition & 1 deletion lib/Mojolicious/Command.pm
Expand Up @@ -130,7 +130,7 @@ L<Mojolicious::Command> implements the following attributes.
=head2 app
my $app = $command->app;
$command = $command->app(MyApp->new);
$command = $command->app(Mojolicious->new);
Application for command, defaults to a L<Mojo::HelloWorld> object.
Expand Down
7 changes: 3 additions & 4 deletions lib/Test/Mojo.pm
Expand Up @@ -420,9 +420,8 @@ Test::Mojo - Testing Mojo!
=head1 DESCRIPTION
L<Test::Mojo> is a collection of testing helpers for everyone developing
L<Mojo> and L<Mojolicious> applications, it is usually used together with
L<Test::More>.
L<Test::Mojo> is a test user agent based on L<Mojo::UserAgent>, it is usually
used together with L<Test::More> to test L<Mojolicious> applications.
=head1 ATTRIBUTES
Expand Down Expand Up @@ -511,7 +510,7 @@ following new ones.
=head2 app
my $app = $t->app;
$t = $t->app(MyApp->new);
$t = $t->app(Mojolicious->new);
Access application with L<Mojo::UserAgent::Server/"app">.
Expand Down

0 comments on commit 4e169a5

Please sign in to comment.