Bump version to 0.004002 and update Changes.
[catagits/Gitalist.git] / t / atom.t
1 #!/usr/bin/env perl
2 use FindBin qw/$Bin/;
3 BEGIN {
4     my $env = "$FindBin::Bin/../script/env";
5     if (-r $env) {
6         do $env or die $@;
7     }
8 }
9
10 use lib "$Bin/lib";
11 use TestGitalist;
12 use HTTP::Request::Common;
13
14 my $res = request(GET 'http://localhost/repo1/atom', 'Content-Type' => 'application/atom+xml');
15 ok $res->is_success;
16 is $res->content_type, 'application/atom+xml';
17 TODO: {
18     local $TODO = "Does not work yet. Need similar info to RSS feed";
19     like $res->content, qr{link>http://localhost/repo1</link};
20     like $res->content, qr{description>some test repository</description};
21 }
22 like $res->content, qr{add dir1/file2</div};
23 like $res->content, qr{<id>http://localhost/repo1/36c6c6708b8360d7023e8a1649c45bcf9b3bd818/commit</id};
24 like $res->content, qr{title>add dir1/file2</title};
25
26 done_testing;