rename Shim to ProducerUtils for accuracy
[dbsrgits/SQL-Translator.git] / t / 33tt-table-producer.t
index 226679e..7d75023 100644 (file)
@@ -21,7 +21,7 @@ use File::Temp qw/tempdir/;
 #=============================================================================
 
 BEGIN {
-    maybe_plan(8, 'Template', 'Test::Differences')
+    maybe_plan(8, 'Template 2.20', 'Test::Differences')
 }
 use Test::Differences;
 
@@ -66,20 +66,22 @@ is( $files[1], "$tdir/pet.txt"    , "Wrote pet.txt" );
 open(FILE, "$tdir/person.txt") || die "Couldn't open $tdir/person.txt : $!";
 eq_or_diff <FILE>, qq{Table: person
   Primary Key:  person_id
-  Foriegn Keys: 
+  Foreign Keys: 
   Data Fields:  name, age, weight, iq, description
 
 }
 , "person.txt looks right";
+close(FILE);
 
 open(FILE, "$tdir/pet.txt") || die "Couldn't open $tdir/pet.txt : $!";
 eq_or_diff <FILE>, qq{Table: pet
   Primary Key:  pet_id, person_id
-  Foriegn Keys: 
+  Foreign Keys: 
   Data Fields:  name, age
 
 }
-, "person.txt looks right";
+, "pet.txt looks right";
+close(FILE);
 
 
 print $out if DEBUG;
@@ -88,11 +90,11 @@ print $out if DEBUG;
 __DATA__
 Table: person
   Primary Key:  person_id
-  Foriegn Keys: 
+  Foreign Keys: 
   Data Fields:  name, age, weight, iq, description
 
 Table: pet
   Primary Key:  pet_id, person_id
-  Foriegn Keys: 
+  Foreign Keys: 
   Data Fields:  name, age