Changeset 24370 for trunk/Nebulous-Server
- Timestamp:
- Jun 10, 2009, 1:41:38 PM (17 years ago)
- Location:
- trunk/Nebulous-Server
- Files:
-
- 2 edited
-
lib/Nebulous/Server/Config.pm (modified) (1 diff)
-
t/02_config.t (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Nebulous-Server/lib/Nebulous/Server/Config.pm
r24369 r24370 62 62 63 63 # normalize log levels to lower-case 64 my $self = { trace => $LEVELS{lc($p{trace})} }; 64 my $self = { 65 trace => $LEVELS{lc($p{trace})}, 66 memcached_servers => $p{memcached_servers}, 67 }; 65 68 66 69 bless $self, $class || ref $class; -
trunk/Nebulous-Server/t/02_config.t
r23932 r24370 8 8 use warnings; 9 9 10 use Test::More tests => 2 1;10 use Test::More tests => 22; 11 11 12 12 use lib qw( ./t ./lib ); … … 109 109 is($config_db1->dbpasswd, "boo2", "dbpasswd"); 110 110 } 111 112 # memcached_servers 113 { 114 my $config = Nebulous::Server::Config->new( 115 memcached_servers => ['127.0.0.1:11211'], 116 ); 117 118 is_deeply($config->memcached_servers, ['127.0.0.1:11211'], "memcached_servers"); 119 }
Note:
See TracChangeset
for help on using the changeset viewer.
