Revert last fix, this breaks on old LWP, grrr
[catagits/Catalyst-Runtime.git] / t / live_engine_response_print.t
CommitLineData
e4cc83b2 1#!perl
2
3use strict;
4use warnings;
5
6use FindBin;
7use lib "$FindBin::Bin/lib";
8
9use Test::More tests => 9;
10use Catalyst::Test 'TestApp';
11
12my $expected = {
13 one => "foo",
14 two => "foobar",
15 three => "foo,bar,baz",
16};
17
18for my $action ( keys %{$expected} ) {
19 ok( my $response = request('http://localhost/engine/response/print/' . $action ),
20 'Request' );
21 ok( $response->is_success, "Response $action successful 2xx" );
22
23 is( $response->content, $expected->{$action}, "Content $action OK" );
24}