Last change
on this file since 374 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 | |
---|
1 | use strict; |
---|
2 | use warnings; |
---|
3 | use Test::More; |
---|
4 | use FindBin; |
---|
5 | require "$FindBin::Bin/xml.pl"; |
---|
6 | |
---|
7 | BEGIN { use_ok 'Catalyst::Test', 'Sophie' } |
---|
8 | BEGIN { use_ok 'Sophie::Controller::Chat' } |
---|
9 | |
---|
10 | ok( request('/chat')->is_success, 'Request should succeed' ); |
---|
11 | |
---|
12 | ok( xmlrequest_ok( 'chat.message', [], "help"), "Can request help"); |
---|
13 | |
---|
14 | done_testing(); |
---|
Note: See
TracBrowser
for help on using the repository browser.