Bump version to 0.003003, update Changes.
[catagits/Gitalist.git] / t / atom.t
index 726a9c5..37d6d09 100644 (file)
--- a/t/atom.t
+++ b/t/atom.t
@@ -1,11 +1,19 @@
 #!/usr/bin/env perl
 use FindBin qw/$Bin/;
+BEGIN {
+    my $env = "$FindBin::Bin/../script/env";
+    if (-r $env) {
+        do $env or die $@;
+    }
+}
+
 use lib "$Bin/lib";
 use TestGitalist;
+use HTTP::Request::Common;
 
-my $res = request('/repo1/atom');
+my $res = request(GET 'http://localhost/repo1/atom', 'Content-Type' => 'application/atom+xml');
 ok $res->is_success;
-
+is $res->content_type, 'application/atom+xml';
 TODO: {
     local $TODO = "Does not work yet. Need similar info to RSS feed";
     like $res->content, qr{link>http://localhost/repo1</link};