Skip to content

Instantly share code, notes, and snippets.

/test.diff Secret

Created July 5, 2015 18:35
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 anonymous/8b86cf4b9db554ad9d65 to your computer and use it in GitHub Desktop.
Save anonymous/8b86cf4b9db554ad9d65 to your computer and use it in GitHub Desktop.
diff --git a/t/mojo/daemon.t b/t/mojo/daemon.t
index c32f7ca..b8554b0 100644
--- a/t/mojo/daemon.t
+++ b/t/mojo/daemon.t
@@ -87,6 +87,11 @@ is(Mojo::Server::Daemon->new->load_app($path)->config('script'),
# Load broken app
eval {
Mojo::Server::Daemon->new->load_app(
+ "$FindBin::Bin/lib/Mojo/LoaderTest/A.pm");
+};
+like $@, qr/did not return an application object/, 'right error';
+eval {
+ Mojo::Server::Daemon->new->load_app(
"$FindBin::Bin/lib/Mojo/LoaderException.pm");
};
like $@, qr/^Can't load application/, 'right error';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment