13 'Test needs ' . DBIx::Class::Optional::Dependencies->req_missing_for ('deploy')
14 unless DBIx::Class::Optional::Dependencies->req_ok_for ('deploy')
18 use Path::Class qw/dir/;
21 my $parse_schema = DBICTest->init_schema(no_deploy => 1);
22 $parse_schema->deploy({},'t/lib/test_deploy');
23 $parse_schema->resultset("Artist")->all();
24 }, 'artist table deployed correctly' );
26 my $schema = DBICTest->init_schema();
28 my $var = dir ("t/var/ddl_dir-$$");
29 $var->mkpath unless -d $var;
31 my $test_dir_1 = $var->subdir ('test1', 'foo', 'bar' );
32 $test_dir_1->rmtree if -d $test_dir_1;
33 $schema->create_ddl_dir( undef, undef, $test_dir_1 );
35 ok( -d $test_dir_1, 'create_ddl_dir did a make_path on its target dir' );
36 ok( scalar( glob $test_dir_1.'/*.sql' ), 'there are sql files in there' );
39 local $TODO = 'we should probably add some tests here for actual deployability of the DDL?';