From: Tomas Doran Date: Wed, 11 Nov 2009 01:20:42 +0000 (+0000) Subject: Fix test by using accessor, not breaking abstraction X-Git-Tag: 0.000000_01~37^2~5^2~2 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=19839687025f2cd4e9cd56a6b51400ce35c50bf8;p=catagits%2FGitalist.git Fix test by using accessor, not breaking abstraction --- diff --git a/t/02git_repo.t b/t/02git_repo.t index 4f5758b..be1abbf 100644 --- a/t/02git_repo.t +++ b/t/02git_repo.t @@ -14,7 +14,7 @@ isa_ok($repo, 'Gitalist::Git::Repo'); is($repo->repo_dir, $repo_dir, "repo->repo_dir is correct" ); -my $project_list = $repo->{projects}; +my $project_list = $repo->projects; isa_ok(@$project_list[0], 'Gitalist::Git::Project'); dies_ok {