Improve trigger 'scope' attribute support (RT#119997)
[dbsrgits/SQL-Translator.git] / t / 06xsv.t
index 733dd46..125a1af 100644 (file)
--- a/t/06xsv.t
+++ b/t/06xsv.t
@@ -8,8 +8,13 @@ use strict;
 use SQL::Translator;
 use SQL::Translator::Schema;
 use SQL::Translator::Schema::Constants;
-use SQL::Translator::Parser::xSV qw(parse);
-use Test::More tests => 25;
+use Test::More;
+use Test::SQL::Translator qw(maybe_plan);
+
+BEGIN {
+    maybe_plan(25, 'SQL::Translator::Parser::xSV');
+    SQL::Translator::Parser::xSV->import('parse');
+}
 
 my $tr = SQL::Translator->new;
 my $s  = SQL::Translator::Schema->new;
@@ -57,7 +62,7 @@ is( $f6->size, '6', 'Size is "6"' );
 my $f7 = $fields[6];
 is( $f7->name, 'Seven', 'Seventh field name is "Seven"' );
 is( $f7->data_type, 'float', 'Data type is "float"' );
-is( $f7->size, '1,2', 'Size is "1,2"' );
+is( $f7->size, '3,2', 'Size is "3,2"' );
 
 my @indices = $table->get_indices;
 is( scalar @indices, 0, 'Correct number of indices (0)' );