version 1.14, 2010/01/20 21:15:15 |
version 1.15, 2010/02/13 23:26:44 |
|
|
# AUTHOR: Andrew Fresh (AAF), andrew@cpan.org |
# AUTHOR: Andrew Fresh (AAF), andrew@cpan.org |
# COMPANY: Red River Communications |
# COMPANY: Red River Communications |
# CREATED: 01/07/10 19:11 |
# CREATED: 01/07/10 19:11 |
# REVISION: $AFresh1: list.t,v 1.13 2010/01/18 02:46:48 andrew Exp $ |
# REVISION: $AFresh1: list.t,v 1.14 2010/01/20 21:15:15 andrew Exp $ |
#=============================================================================== |
#=============================================================================== |
|
|
use strict; |
use strict; |
use warnings; |
use warnings; |
|
|
use Test::More tests => 53; |
use Test::More tests => 55; |
|
|
use File::Temp qw/ tempdir /; |
use File::Temp qw/ tempdir /; |
use File::Spec; |
use File::Spec; |
|
|
ok( @copy_list = $copy->list, 'update our list' ); |
ok( @copy_list = $copy->list, 'update our list' ); |
is( $copy_list[1]->text, $entry_to_move->text, |
is( $copy_list[1]->text, $entry_to_move->text, |
'entry is in the new position' ); |
'entry is in the new position' ); |
|
|
|
my @tags; |
|
ok( @tags = $copy->listtags, 'listtagsfor current list' ); |
|
is_deeply( |
|
\@tags, |
|
[ 'context', 'project' ], |
|
'got the projects we expected' |
|
); |
|
|
my @projects; |
my @projects; |
ok( @projects = $copy->listproj, 'listproj for current list' ); |
ok( @projects = $copy->listproj, 'listproj for current list' ); |