Created
October 4, 2010 14:21
-
-
Save marcusramberg/609758 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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