X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Fatom.t;h=37d6d09c2c7191940643494b114ab74339d4f021;hb=3620aa21666f20c634edcf3a6ec6f16580bbda1f;hp=d4de77dadaf5c58d0ad6ae15b10c1f194f47a223;hpb=5ed74c87289454051bd0defcbb67c69f9cc6a799;p=catagits%2FGitalist.git diff --git a/t/atom.t b/t/atom.t index d4de77d..37d6d09 100644 --- a/t/atom.t +++ b/t/atom.t @@ -1,10 +1,17 @@ #!/usr/bin/env perl use FindBin qw/$Bin/; -BEGIN { do "$FindBin::Bin/../script/env" or die $@ } +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: {