source: server/trunk/web/t/controller_Chat.t @ 158

Last change on this file since 158 was 158, checked in by nanardon, 13 years ago
  • factorize xml::rpc test code
  • add functions to test xml::rpc results (ie xml::rpc error code)
File size: 326 bytes
Line 
1use strict;
2use warnings;
3use Test::More;
4use FindBin;
5require "$FindBin::Bin/xml.pl";
6
7BEGIN { use_ok 'Catalyst::Test', 'Sophie' }
8BEGIN { use_ok 'Sophie::Controller::Chat' }
9
10ok( request('/chat')->is_success, 'Request should succeed' );
11
12ok( xmlrequest_ok( 'chat.message', [], "help"), "Can request help");
13
14done_testing();
Note: See TracBrowser for help on using the repository browser.