11 'DBIx::Class::DeploymentHandler::VersionHandler::DatabaseToSchemaVersions';
14 my $vh = DatabaseToSchemaVersions->new({
16 database_version => '1.0',
17 schema_version => '1.0',
20 ok( $vh, 'VersionHandler gets instantiated' );
22 eq_array( $vh->next_version_set, [qw( 1.0 5.0 )] ),
23 'db version and to_version get correctly put into version set'
25 ok( !$vh->next_version_set, 'next_version_set only works once');
26 ok( !$vh->next_version_set, 'seriously.');
30 my $vh = DatabaseToSchemaVersions->new({
31 database_version => '1.0',
32 schema_version => '1.0',
35 ok( $vh, 'VersionHandler gets instantiated' );
37 !$vh->next_version_set,
38 'VersionHandler is null when schema_version and db_verison are the same'
43 my $vh = DatabaseToSchemaVersions->new({
44 database_version => '1.0',
45 schema_version => '1.0',
48 ok( $vh, 'VersionHandler gets instantiated' );
50 !$vh->next_version_set,
51 'VersionHandler is null when schema_version and db_verison are the same'
56 my $vh = DatabaseToSchemaVersions->new({
57 database_version => '1.0',
58 schema_version => '10.0',
61 ok( $vh, 'VersionHandler gets instantiated' );
63 eq_array( $vh->next_version_set, [qw( 1.0 10.0 )] ),
64 'db version and schema version get correctly put into version set'
66 ok( !$vh->next_version_set, 'VersionHandler is null on next try' );
70 # vim: ts=2 sw=2 expandtab