Add Catalyst::Test::MessageDriven for in-process testing of messaging apps.
[catagits/Catalyst-Engine-STOMP.git] / t / 04-message-driven-request.t
CommitLineData
40e96678 1use strict;
2use warnings;
3use Test::More tests => 3;
4
5use FindBin;
6use lib "$FindBin::Bin/../testapp/lib";
7
8BEGIN { use_ok 'Catalyst::Test::MessageDriven', 'StompTestApp' };
9
10my $req = "---\ntype: ping\n";
11my $res = request('testcontroller', $req);
12ok($res, 'response to ping message');
13ok($res->is_success, 'successful response');