Do the correct thing with type contraints etc to be able to serialize things
[catagits/Gitalist.git] / t / 02git_Repository.t
index 738c7f7..7a24a3c 100644 (file)
@@ -25,18 +25,23 @@ BEGIN { use_ok 'Gitalist::Git::Repository' }
 
 dies_ok {
     my $proj = Gitalist::Git::Repository->new();
-} 'New project with no args';
+} 'New repository with no args';
 
 use Path::Class;
 my $gitdir = dir("$Bin/lib/repositories/repo1");
 
 my $proj = Gitalist::Git::Repository->new($gitdir);
 isa_ok($proj, 'Gitalist::Git::Repository');
-is($proj->path, $gitdir, 'project path is set');
-isa_ok($proj->path, 'Path::Class::Dir', 'project path');
+is($proj->path, $gitdir, 'repository path is set');
+isa_ok($proj->path, 'Path::Class::Dir', 'repository path');
 is($proj->name, qw/repo1/, 'repository name is set');
 is($proj->description, qq/some test repository/, 'repository description loaded');
 isa_ok($proj->last_change, 'DateTime', 'last_change');
+{
+    my $packed = $proj->pack;
+    use Data::Dumper;
+    warn Dumper $packed;
+}
 
 my %references = %{$proj->references};
 ok(keys %references >= 2, '->references hash has elements');