diff options
Diffstat (limited to 'rt/lib/t/regression/00-mason-syntax.t')
-rw-r--r-- | rt/lib/t/regression/00-mason-syntax.t | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/rt/lib/t/regression/00-mason-syntax.t b/rt/lib/t/regression/00-mason-syntax.t index 96674ca..a94c7ef 100644 --- a/rt/lib/t/regression/00-mason-syntax.t +++ b/rt/lib/t/regression/00-mason-syntax.t @@ -25,6 +25,7 @@ find( { }, 'html'); ok($ok, "mason syntax is ok"); +use HTML::Mason; use HTML::Mason::Compiler; use HTML::Mason::Compiler::ToObject; @@ -36,7 +37,11 @@ sub compile_file { close $fh or die "couldn't close '$file': $!"; my $compiler = new HTML::Mason::Compiler::ToObject; - $compiler->compile( comp_source => $text, name => 'my' ); + $compiler->compile( + comp_source => $text, + name => 'my', + $HTML::Mason::VERSION >= 1.36? (comp_path => 'my'): (), + ); return 1; } |