X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=t%2Fwww_listing.t;h=e5b797db7f9582c954702ac69d008fa4c453ae8a;hb=f4f0a3be0864721d90f9557ffe1c513b0289a74b;hp=d82a4a4a581345425d06a03bdfbc786a8c44c2c5;hpb=74dc166d18b5586689f21f6032196279e6db4db3;p=public-inbox.git diff --git a/t/www_listing.t b/t/www_listing.t index d82a4a4a..e5b797db 100644 --- a/t/www_listing.t +++ b/t/www_listing.t @@ -55,7 +55,12 @@ sub tiny_test { $res->{headers}->{'last-modified'}, 'modified field and Last-Modified header match'); - ok($manifest->{'/v2/git/0.git'}, 'v2 epoch appeared'); + ok(my $v2epoch0 = $manifest->{'/v2/git/0.git'}, 'v2 epoch 0 appeared'); + like($v2epoch0->{description}, qr/ \[epoch 0\]\z/, + 'epoch 0 in description'); + ok(my $v2epoch1 = $manifest->{'/v2/git/1.git'}, 'v2 epoch 1 appeared'); + like($v2epoch1->{description}, qr/ \[epoch 1\]\z/, + 'epoch 1 in description'); } my $pid;