Skip to content

Instantly share code, notes, and snippets.

@marcusramberg
Created October 4, 2010 14:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marcusramberg/609758 to your computer and use it in GitHub Desktop.
Save marcusramberg/609758 to your computer and use it in GitHub Desktop.
diff --git a/lib/Mojolicious/Lite.pm b/lib/Mojolicious/Lite.pm
index 7a1f22e..2b561e7 100644
--- a/lib/Mojolicious/Lite.pm
+++ b/lib/Mojolicious/Lite.pm
@@ -669,6 +669,10 @@ it with normal Perl unit tests like C<t/funky.t>.
my $t = Test::Mojo->new;
$t->get_ok('/')->status_is(200)->content_like(qr/Funky!/);
+Note: When testing like this, the app name is taken from the test script
+so if you depend on it, you need to give the test the same name as your
+script.
+
Run all unit tests with the C<test> command.
% ./myapp.pl test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment