Commit | Line | Data |
e4cc83b2 |
1 | #!perl |
2 | |
3 | use strict; |
4 | use warnings; |
5 | |
6 | use FindBin; |
9c8b81a2 |
7 | use lib "$FindBin::Bin/../lib"; |
e4cc83b2 |
8 | |
9 | use Test::More tests => 9; |
10 | use Catalyst::Test 'TestApp'; |
11 | |
12 | my $expected = { |
13 | one => "foo", |
14 | two => "foobar", |
15 | three => "foo,bar,baz", |
16 | }; |
17 | |
1e6db81d |
18 | for my $action ( sort keys %{$expected} ) { |
e4cc83b2 |
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 | } |