File: 03_config_paths.t

package info (click to toggle)
libdbix-class-schema-config-perl 0.001011-1
  • links: PTS
  • area: main
  • in suites: stretch
  • size: 240 kB
  • ctags: 126
  • sloc: perl: 2,019; makefile: 2
file content (21 lines) | stat: -rw-r--r-- 460 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/usr/bin/perl
use warnings;
use strict;
use Test::More;
use base 'DBIx::Class::Schema::Config';
use File::HomeDir;

is_deeply(
    __PACKAGE__->config_paths,
    [ './dbic', File::HomeDir->my_home . "/.dbic", "/etc/dbic"  ],
    "_config_paths looks sane.");

__PACKAGE__->config_paths( [ ( './this', '/var/www/that' ) ] );

is_deeply(
    __PACKAGE__->config_paths,
    [ './this', '/var/www/that'  ],
    "_config_paths can be modified.");


done_testing;