10 'DBIx::Class::DeploymentHandler::VersionHandler::DatabaseToSchemaVersions';
13 my $vh = DatabaseToSchemaVersions->new({
15 database_version => '1.0',
16 schema_version => '1.0',
19 ok( $vh, 'VersionHandler gets instantiated' );
21 eq_array( $vh->next_version_set, [qw( 1.0 5.0 )] ),
22 'db version and to_version get correctly put into version set'
24 ok( !$vh->next_version_set, 'next_version_set only works once');
25 ok( !$vh->next_version_set, 'seriously.');
29 my $vh = DatabaseToSchemaVersions->new({
30 database_version => '1.0',
31 schema_version => '1.0',
34 ok( $vh, 'VersionHandler gets instantiated' );
36 !$vh->next_version_set,
37 'VersionHandler is null when schema_version and db_verison are the same'
42 my $vh = DatabaseToSchemaVersions->new({
43 database_version => '1.0',
44 schema_version => '1.0',
47 ok( $vh, 'VersionHandler gets instantiated' );
49 !$vh->next_version_set,
50 'VersionHandler is null when schema_version and db_verison are the same'
55 my $vh = DatabaseToSchemaVersions->new({
56 database_version => '1.0',
57 schema_version => '10.0',
60 ok( $vh, 'VersionHandler gets instantiated' );
62 eq_array( $vh->next_version_set, [qw( 1.0 10.0 )] ),
63 'db version and schema version get correctly put into version set'
65 ok( !$vh->next_version_set, 'VersionHandler is null on next try' );
69 # vim: ts=2 sw=2 expandtab