change all the tests to use the new test schema namespace
[dbsrgits/DBIx-Class-DeploymentHandler.git] / t / mysql / basic.t
index 7ace92a..0c17031 100644 (file)
@@ -20,8 +20,8 @@ VERSION1: {
   my $dbh = DBI->connect("DBI:mysql:test;mysql_socket=${\$testdb->base_dir}/tmp/mysql.sock",'root','');
 
   use_ok 'DBICVersion_v1';
-  $DBICVersion::Schema::VERSION = 1;
-  ok my $schema = DBICVersion::Schema->connect(sub { $dbh }),
+  $DBICVersion::Schema1::VERSION = 1;
+  ok my $schema = DBICVersion::Schema1->connect(sub { $dbh }),
     'got schema';
 
   ok my $dbic_dh = build_dh($schema),
@@ -40,8 +40,8 @@ VERSION2: {
   my $dbh = DBI->connect("DBI:mysql:test;mysql_socket=${\$testdb->base_dir}/tmp/mysql.sock",'root','');
 
   use_ok 'DBICVersion_v2';
-  $DBICVersion::Schema::VERSION = 2;
-  ok my $schema = DBICVersion::Schema->connect(sub { $dbh }),
+  $DBICVersion::Schema2::VERSION = 2;
+  ok my $schema = DBICVersion::Schema2->connect(sub { $dbh }),
     'got schema';
 
   ok my $dbic_dh = build_dh($schema,1),
@@ -69,8 +69,8 @@ VERSION1FORCE: {
   my $dbh = DBI->connect("DBI:mysql:test;mysql_socket=${\$testdb->base_dir}/tmp/mysql.sock",'root','');
 
   use_ok 'DBICVersion_v2';
-  $DBICVersion::Schema::VERSION = 2;
-  ok my $schema = DBICVersion::Schema->connect(sub { $dbh }),
+  $DBICVersion::Schema2::VERSION = 2;
+  ok my $schema = DBICVersion::Schema2->connect(sub { $dbh }),
     'got schema';
 
   my $dbic_dh = DBIx::Class::DeploymentHandler->new({