first pass RT4 merge, RT#13852
[freeside.git] / rt / t / api / squish.t
1 use strict;
2 use warnings;
3 use RT;
4 use RT::Test nodb => 1, tests => 7;
5
6 use RT::Squish;
7
8 my $squish = RT::Squish->new();
9 for my $method ( qw/Content ModifiedTime ModifiedTimeString Key/ ) {
10     can_ok($squish, $method);
11 }
12 like( $squish->Key, qr/[a-f0-9]{32}/, 'Key is like md5' );
13 ok( (time()-$squish->ModifiedTime) <= 2, 'ModifiedTime' );
14
15 use RT::Squish::CSS;
16 can_ok('RT::Squish::CSS', 'Style');