summaryrefslogtreecommitdiff
path: root/rt/t/api/squish.t
blob: 59615368f9ef8a6449dd7773e58f3037a7f04f88 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use strict;
use warnings;
use RT;
use RT::Test nodb => 1, tests => 7;

use RT::Squish;

my $squish = RT::Squish->new();
for my $method ( qw/Content ModifiedTime ModifiedTimeString Key/ ) {
    can_ok($squish, $method);
}
like( $squish->Key, qr/[a-f0-9]{32}/, 'Key is like md5' );
ok( (time()-$squish->ModifiedTime) <= 2, 'ModifiedTime' );

use RT::Squish::CSS;
can_ok('RT::Squish::CSS', 'Style');