Only output trigger 'scope' if it's set in YAML and JSON producers
[dbsrgits/SQL-Translator.git] / t / 34tt-base.t
index 8808b1d..f69f2aa 100644 (file)
@@ -10,8 +10,8 @@ use Test::Exception;
 use Test::SQL::Translator qw(maybe_plan);
 
 BEGIN {
-    maybe_plan(4, 'Template', 
-               'Test::Differences', 
+    maybe_plan(4, 'Template 2.20',
+               'Test::Differences',
                'SQL::Translator::Parser::XML::SQLFairy')
 }
 use Test::Differences;
@@ -26,7 +26,7 @@ use lib ("$Bin/lib");
 my $obj;
 $obj = SQL::Translator->new(
     debug          => 0,
-    show_warnings  => 1,
+    show_warnings  => 0,
     add_drop_table => 1,
     from           => "XML-SQLFairy",
     filename       => "$Bin/data/xml/schema.xml",
@@ -42,8 +42,13 @@ eq_or_diff $out, <DATA>              ,"Output looks right";
 
 __DATA__
 Hello World
-Tables: Basic
+Tables: Basic, Another
 
 Basic
 ------
-Fields: id title description email explicitnulldef explicitemptystring emptytagdef timest
+Fields: id title description email explicitnulldef explicitemptystring emptytagdef another_id timest
+
+Another
+------
+Fields: id num
+