Skip to content

Commit

Permalink
test XML escaping
Browse files Browse the repository at this point in the history
  • Loading branch information
nichtich committed Aug 6, 2013
1 parent 51c3af0 commit 783ef03
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions t/basic.t
Expand Up @@ -27,12 +27,12 @@ my $app2 = MyApp->new;
my @xml = (
'<?xml version="1.0" encoding="UTF-8"?>',
'<format name="xml" type="application/xml" />',
'<format name="txt" type="text/plain" docs="http://example.com" />',
'<format name="txt" type="text/plain" docs="http://example.com?x&amp;y" />',
'</formats>' );

my $app = unAPI(
xml => [ $app1 => 'application/xml' ],
txt => [ $app2 => 'text/plain', docs => 'http://example.com', quality => 0.3 ]
txt => [ $app2 => 'text/plain', docs => 'http://example.com?x&y', quality => 0.3 ]
);

test_psgi $app, sub {
Expand Down

0 comments on commit 783ef03

Please sign in to comment.