X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F02-instantiation.t;h=73e92de0486f34adf0f0d93ac0a8644e3eb35e86;hb=24f4524be2492ee3699f7ee87eb899238c6268c7;hp=8536937224b4cca41508361d4b06a19560aa60ff;hpb=2eaf903b4450604819a24ee038ff2fc3a3302fed;p=dbsrgits%2FDBIx-Class-DeploymentHandler.git diff --git a/t/02-instantiation.t b/t/02-instantiation.t index 8536937..73e92de 100644 --- a/t/02-instantiation.t +++ b/t/02-instantiation.t @@ -12,9 +12,9 @@ my $sql_dir = 't/sql'; unlink 'db.db' if -e 'db.db'; if (-d 't/sql') { - unlink $_ for glob('t/sql/*'); + unlink $_ for glob('t/sql/*'); } else { - mkdir 't/sql'; + mkdir 't/sql'; } VERSION1: { @@ -25,7 +25,7 @@ VERSION1: { upgrade_directory => $sql_dir, schema => $s, databases => 'SQLite', - sqltargs => { add_drop_table => 0 }, + sqltargs => { add_drop_table => 0 }, }); ok($handler, 'DBIx::Class::DeploymentHandler w/1.0 instantiates correctly'); @@ -77,7 +77,7 @@ VERSION2: { baz => 'frew', }) } 'schema not uppgrayyed'; - $handler->upgrade_single_step('1.0', '2.0'); + $handler->upgrade_single_step(['1.0', '2.0']); lives_ok { $s->resultset('Foo')->create({ bar => 'frew',