Fixed failing Content-Type tests.
[catagits/Gitalist.git] / t / opml.t
index b5bb93c..642e709 100644 (file)
--- a/t/opml.t
+++ b/t/opml.t
@@ -3,8 +3,10 @@ use FindBin qw/$Bin/;
 BEGIN { do "$FindBin::Bin/../script/env" or die $@ }
 use lib "$Bin/lib";
 use TestGitalist;
+use HTTP::Request::Common;
+
+my $res = request(GET 'http://localhost/opml', 'Content-Type' => 'application/rss');
 
-my $res = request('/opml');
 ok $res->is_success;
 
 is $res->content_type, 'application/rss';