Add new column with a default to Artist, adjust tests as necessary (no functional...
[dbsrgits/DBIx-Class.git] / t / 64db.t
index 5208614..3a761e4 100644 (file)
--- a/t/64db.t
+++ b/t/64db.t
@@ -5,7 +5,7 @@ use Test::More;
 use lib qw(t/lib);
 use DBICTest;
 
-my $schema = DBICTest::init_schema();
+my $schema = DBICTest->init_schema();
 
 plan tests => 3;
 
@@ -39,8 +39,8 @@ my $type_info = $schema->storage->columns_info_for('artist');
 # I know this is gross but SQLite reports the size differently from release
 # to release. At least this way the test still passes.
 
-delete $type_info->{artistid}{size};
-delete $type_info->{name}{size};
+delete $type_info->{$_}{size} for keys %$type_info;
+
 
 my $test_type_info = {
     'artistid' => {
@@ -51,6 +51,10 @@ my $test_type_info = {
         'data_type' => 'varchar',
         'is_nullable' => 0,
     },
+    'rank' => {
+        'data_type' => 'integer',
+        'is_nullable' => 0,
+    },
 };
 is_deeply($type_info, $test_type_info, 'columns_info_for - column data types');