Update mysql producer test to saner field names, Peter R.
Jess Robinson [Fri, 29 Aug 2008 08:39:35 +0000 (08:39 +0000)]
t/38-mysql-producer.t

index 3c95bde..d2703fe 100644 (file)
@@ -271,7 +271,7 @@ my $number_sizes = {
 for my $size (keys %$number_sizes) {
     my $expected = $number_sizes->{$size};
     my $number_field = SQL::Translator::Schema::Field->new( 
-        name => "numberfield_$size",
+        name => "numberfield_$expected",
         table => $table,
         data_type => 'number',
         size => $size,
@@ -282,7 +282,7 @@ for my $size (keys %$number_sizes) {
 
     is(
         SQL::Translator::Producer::MySQL::create_field($number_field),
-        "numberfield_$size $expected($size)",
+        "numberfield_$expected $expected($size)",
         "Use $expected for NUMBER types of size $size"
     );
 }