Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

19 lines (13 sloc) 0.541 kb
use strict;
use warnings;
use Test::More;
BEGIN { use_ok 'Catalyst::Test', 'Maximus' }
BEGIN { use_ok 'Maximus::Controller::Timeline' }
ok(request('/timeline')->is_success, 'Request should succeed');
my $req = request('/timeline/rss');
ok($req->is_success, 'Request should succeed');
is($req->header('Content-Type'), 'application/rss+xml', 'Is RSS Response');
$req = request('/timeline/atom');
ok($req->is_success, 'Request should succeed');
is($req->header('Content-Type'), 'application/atom+xml', 'Is Atom Response');
done_testing();
Jump to Line
Something went wrong with that request. Please try again.