projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
RT 4.0.13
[freeside.git]
/
rt
/
t
/
api
/
squish.t
diff --git
a/rt/t/api/squish.t
b/rt/t/api/squish.t
index
5961536
..
4b0fc5f
100644
(file)
--- a/
rt/t/api/squish.t
+++ b/
rt/t/api/squish.t
@@
-1,11
+1,16
@@
use strict;
use warnings;
use RT;
use strict;
use warnings;
use RT;
-use RT::Test nodb => 1, tests => 7;
+use RT::Test nodb => 1, tests => undef;
+use Test::Warn;
use RT::Squish;
use RT::Squish;
-my $squish = RT::Squish->new();
+my $squish;
+warning_like {
+ $squish = RT::Squish->new();
+} [qr/implement/], "warns this is only an abstract base class";
+
for my $method ( qw/Content ModifiedTime ModifiedTimeString Key/ ) {
can_ok($squish, $method);
}
for my $method ( qw/Content ModifiedTime ModifiedTimeString Key/ ) {
can_ok($squish, $method);
}
@@
-14,3
+19,5
@@
ok( (time()-$squish->ModifiedTime) <= 2, 'ModifiedTime' );
use RT::Squish::CSS;
can_ok('RT::Squish::CSS', 'Style');
use RT::Squish::CSS;
can_ok('RT::Squish::CSS', 'Style');
+
+done_testing;