3 my $env = "$FindBin::Bin/../script/env";
11 use Test::More qw/no_plan/;
15 BEGIN { use_ok 'Gitalist::Git::Head' }
18 my $revline="a92fb1c9282f7319099ce7f783c8be7d5360f6e3\0refs/heads/model-cleanup\0Zachary Stevens <zts\@cryptocracy.com> 1277601094 +0100";
19 my $instance = Gitalist::Git::Head->new($revline);
20 isa_ok($instance, 'Gitalist::Git::Head');
22 # Create an instance, passing last_change as a DateTime
24 my $timespec = [1277578462, '+0100'];
25 my $dt = DateTime->from_epoch(
26 epoch => @$timespec[0],
27 time_zone => @$timespec[1],
29 my $head = Gitalist::Git::Head->new(
30 sha1 => 'bca1153c22e393a952b6715bf2212901e4e77215',
32 committer => 'Zachary Stevens <zts@cryptocracy.com>',
35 isa_ok($head, 'Gitalist::Git::Head');