mojomojo / t / formatter_comment.t
100755 13 lines (11 sloc) 0.45 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/usr/bin/perl -w
use Test::More tests => 4;
BEGIN {
    $ENV{CATALYST_CONFIG}='t/var/mojomojo.yml';
    $ENV{CATALYST_DEBUG}=0;
    use_ok('MojoMojo::Formatter::Comment');
    can_ok('MojoMojo::Formatter::Comment', qw/format_content format_content_order/);
    use_ok(Catalyst::Test, 'MojoMojo');
};
 
$body = get('/.jsrpc/render?content=%7B%7Bcomments%7D%7D');
like($body, qr/comments disabled for preview/, 'the comment formatter is recognized');