projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
starting to work...
[freeside.git]
/
rt
/
t
/
00-mason-syntax.t
diff --git
a/rt/t/00-mason-syntax.t
b/rt/t/00-mason-syntax.t
index
0584f63
..
1221b7d
100644
(file)
--- a/
rt/t/00-mason-syntax.t
+++ b/
rt/t/00-mason-syntax.t
@@
-3,9
+3,8
@@
use strict;
use warnings;
use strict;
use warnings;
-use RT::Test
tests
=> 1;
+use RT::Test
nodb
=> 1;
-my $ok = 1;
use File::Find;
find( {
use File::Find;
find( {
@@
-14,13
+13,10
@@
find( {
return if /(?:\.(?:jpe?g|png|gif|rej)|\~)$/i;
return if m{/\.[^/]+\.swp$}; # vim swap files
return unless -f $_;
return if /(?:\.(?:jpe?g|png|gif|rej)|\~)$/i;
return if m{/\.[^/]+\.swp$}; # vim swap files
return unless -f $_;
- diag "testing $_" if $ENV{'TEST_VERBOSE'};
- eval { compile_file($_) } and return;
- $ok = 0;
- diag "error in ${File::Find::name}:\n$@";
+ local ($@);
+ ok( eval { compile_file($_) }, "Compiled $File::Find::name ok: $@");
},
}, RT::Test::get_relocatable_dir('../share/html'));
},
}, RT::Test::get_relocatable_dir('../share/html'));
-ok($ok, "mason syntax is ok");
use HTML::Mason;
use HTML::Mason::Compiler;
use HTML::Mason;
use HTML::Mason::Compiler;
@@
-37,7
+33,7
@@
sub compile_file {
$compiler->compile(
comp_source => $text,
name => 'my',
$compiler->compile(
comp_source => $text,
name => 'my',
-
$HTML::Mason::VERSION >= 1.36? (comp_path => 'my'): ()
,
+
comp_path => 'my'
,
);
return 1;
}
);
return 1;
}