X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F02-instantiation.t;h=4be190ec97ca1cbbae794879ecfad0e80c476fca;hb=9600776db4be01b6cb1d7e361275e9fd2bd4c3d9;hp=b6dfd2cd2770640a8984b1d24388ecdcc8a8bacd;hpb=8a7847f1b8a8ca910d43db22eea85d321b1602c3;p=dbsrgits%2FDBIx-Class-DeploymentHandler.git diff --git a/t/02-instantiation.t b/t/02-instantiation.t index b6dfd2c..4be190e 100644 --- a/t/02-instantiation.t +++ b/t/02-instantiation.t @@ -61,7 +61,7 @@ VERSION2: { $version = $s->schema_version(); $handler->prepare_install(); - $handler->prepare_update($version, '1.0'); + $handler->prepare_update('1.0', $version); ok(-e 't/sql/DBICVersion-Schema-2.0-SQLite.sql', 'DDL for 2.0 got created successfully'); ok(-e 't/sql/DBICVersion-Schema-1.0-2.0-SQLite.sql', 'DDL for migration from 1.0 to 2.0 got created successfully'); dies_ok { @@ -100,8 +100,8 @@ VERSION3: { $version = $s->schema_version(); $handler->prepare_install; - $handler->prepare_update( $version, '1.0'); - $handler->prepare_update( $version, '2.0'); + $handler->prepare_update( '1.0', $version ); + $handler->prepare_update( '2.0', $version ); ok(-e 't/sql/DBICVersion-Schema-3.0-SQLite.sql', 'DDL for 3.0 got created successfully'); ok(-e 't/sql/DBICVersion-Schema-1.0-3.0-SQLite.sql', 'DDL for migration from 1.0 to 3.0 got created successfully'); ok(-e 't/sql/DBICVersion-Schema-2.0-3.0-SQLite.sql', 'DDL for migration from 2.0 to 3.0 got created successfully');