change passing of preversion to be a parameter
Gordon Irving [Sat, 12 Dec 2009 18:36:22 +0000 (18:36 +0000)]
t/admin/02ddl.t

index de1f067..8ad1399 100644 (file)
@@ -91,8 +91,7 @@ $admin = DBIx::Class::Admin->new(
        connect_info => $schema->storage->connect_info(),
 );
 
-$admin->preversion("1.0");
-lives_ok { $admin->create($schema->storage->sqlt_type(), ); } 'Can create diff for ' . $schema->storage->sqlt_type;
+lives_ok { $admin->create($schema->storage->sqlt_type(), {}, "1.0" ); } 'Can create diff for ' . $schema->storage->sqlt_type;
 # sleep required for upgrade table to hold a distinct time of upgrade value
 # otherwise the returned of get_db_version can be undeterministic
 sleep 1;