source: server/trunk/web/t/controller_Chat-Cmd.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: 350 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::Cmd' }
9
10foreach (qw(version v packager p arch a buildfrom)) {
11    ok(
12        xmlrequest_ok("chat.cmd.$_", {}, "rpm"),
13        "XML::RPC chat.cmd.$_"
14    );
15}
16
17done_testing();
Note: See TracBrowser for help on using the repository browser.