Move new model tests someplace they'll actually get run.
[catagits/Gitalist.git] / t / 02git_repo.t
CommitLineData
56b6dbe6 1use strict;
2use warnings;
3use FindBin qw/$Bin/;
4use Test::More qw/no_plan/;
5
6use Data::Dumper;
7
8BEGIN { use_ok 'Gitalist::Git::Repo' }
9
58251520 10my $repo_dir = "$Bin/lib/repositories";
4baaeeef 11my $repo = Gitalist::Git::Repo->new( repo_dir => $repo_dir );
56b6dbe6 12isa_ok($repo, 'Gitalist::Git::Repo');
13
4baaeeef 14is($repo->repo_dir, $repo_dir, "repo->repo_dir is correct" );
56b6dbe6 15
16my $project_list = $repo->list_projects;
56b6dbe6 17isa_ok(@$project_list[0], 'Gitalist::Git::Project');