From: Ken Youens-Clark Date: Wed, 15 Apr 2009 17:37:08 +0000 (+0000) Subject: Cleaned up, Template version no longer a problem(?). X-Git-Tag: v0.11008~199 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=dcb68773eb782580e460b5a12767bfddc327e69e;p=dbsrgits%2FSQL-Translator.git Cleaned up, Template version no longer a problem(?). --- diff --git a/t/18ttschema-producer.t b/t/18ttschema-producer.t index d4c1e93..67233ad 100644 --- a/t/18ttschema-producer.t +++ b/t/18ttschema-producer.t @@ -17,8 +17,10 @@ use FindBin qw/$Bin/; BEGIN { eval {require Template;}; - plan skip_all => "Template v2.15 is is incompatible with SQL::Translator 0.08+" - if !$@ && Template->VERSION >= 2.15; + + if ( $@ ) { + plan skip_all => 'Template not installed?' + } maybe_plan(6, 'XML::XPath', @@ -42,7 +44,6 @@ use SQL::Translator::Producer::TTSchema; to => "TTSchema", producer_args => { ttfile => "$Bin/data/template/basic.tt", -# ttfile => "$Bin/data/template/test.tt", tt_vars => { foo => 'bar', hello => 'world', @@ -51,7 +52,6 @@ use SQL::Translator::Producer::TTSchema; ); my $out; lives_ok { $out = $obj->translate; } "Translate ran"; -# print STDERR "Output: $out\n"; ok $out ne "" ,"Produced something!"; local $/ = undef; # slurp eq_or_diff $out, ,"Output looks right";