Skip to content

Commit

Permalink
more application loading tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Jul 5, 2015
1 parent be44060 commit 043bcaa
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions t/mojo/daemon.t
Expand Up @@ -85,9 +85,11 @@ is(Mojo::Server::Daemon->new->load_app($path)->config('script'),
abs_path($path), 'right script name');

# Load broken app
my $bin = $FindBin::Bin;
eval { Mojo::Server::Daemon->new->load_app("$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");
Mojo::Server::Daemon->new->load_app("$bin/lib/Mojo/LoaderException.pm");
};
like $@, qr/^Can't load application/, 'right error';

Expand Down

0 comments on commit 043bcaa

Please sign in to comment.