Skip to content

Commit

Permalink
fixing XML tests
Browse files Browse the repository at this point in the history
  • Loading branch information
xsawyerx committed Nov 17, 2010
1 parent 4ac939a commit 326d014
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions t/01_config/05_serializers.t
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@ SKIP: {
SKIP: {
skip 'XML::Simple is needed to run this test', 3
unless Dancer::ModuleLoader->load('XML::Simple');

skip 'XML::Parser or XML::SAX are needed to run this test', 3
unless Dancer::ModuleLoader->load('XML::Parser') or
Dancer::ModuleLoader->load('XML::SAX');

ok my $test = to_xml($struct), 'to xml';
ok my $final_struct = from_xml($test), 'from xml';
is_deeply $final_struct, $struct, 'from => to works';
Expand Down
4 changes: 4 additions & 0 deletions t/12_response/03_charset.t
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,10 @@ SKIP: {
skip "XML::Simple is needed for this test" , 1
unless Dancer::ModuleLoader->load('XML::Simple');

skip "XML::Parser or XML::SAX are needed to run this test", 1
unless Dancer::ModuleLoader->load('XML::Parser') or
Dancer::ModuleLoader->load('XML::SAX');

setting serializer => 'XML';
$res->{content_type} = 'text/xml';
$res->{content} = { key => "\x{0429}" };
Expand Down

0 comments on commit 326d014

Please sign in to comment.