X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Fatom.t;h=37d6d09c2c7191940643494b114ab74339d4f021;hb=72fbbef7d694cd33a18ee384938a2d5944f34c8e;hp=13c835f2c00de487433b894c0b7d486dfd037be9;hpb=b9f46eb8473865f035d99a119e3c0d4577e1acc1;p=catagits%2FGitalist.git diff --git a/t/atom.t b/t/atom.t index 13c835f..37d6d09 100644 --- a/t/atom.t +++ b/t/atom.t @@ -1,9 +1,17 @@ #!/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: {