Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
test ojo with signatures too
  • Loading branch information
kraih committed Oct 31, 2017
1 parent 0dca85a commit 3c97151
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions t/mojolicious/ojo_signatures.t
@@ -0,0 +1,17 @@
use Mojo::Base -strict;

BEGIN { $ENV{MOJO_REACTOR} = 'Mojo::Reactor::Poll' }

use Test::More;

BEGIN { plan skip_all => 'Perl 5.20+ required for this test!' if $] < 5.020 }

use ojo;

my $app = a('/' => sub ($c) { $_->render(data => 'signatures work') });
my $tx = $app->ua->get('/');
ok $tx->success, 'successful';
is $tx->res->code, 200, 'right status';
is $tx->res->body, 'signatures work', 'right content';

done_testing();

0 comments on commit 3c97151

Please sign in to comment.