]> git.pld-linux.org Git - packages/perl-Plack.git/commitdiff
- added test patch
authoraredridel <aredridel@pld-linux.org>
Wed, 11 May 2011 04:35:49 +0000 (04:35 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    perl-Plack-tests.patch -> 1.1

perl-Plack-tests.patch [new file with mode: 0644]

diff --git a/perl-Plack-tests.patch b/perl-Plack-tests.patch
new file mode 100644 (file)
index 0000000..5a8cd28
--- /dev/null
@@ -0,0 +1,26 @@
+diff -ur Plack-0.9978-o/t/Plack-Middleware/conditionalget_writer.t Plack-0.9978/t/Plack-Middleware/conditionalget_writer.t
+--- Plack-0.9978-o/t/Plack-Middleware/conditionalget_writer.t  2011-04-12 18:36:52.000000000 -0600
++++ Plack-0.9978/t/Plack-Middleware/conditionalget_writer.t    2011-05-10 22:14:27.000000000 -0600
+@@ -5,6 +5,7 @@
+ use HTTP::Request::Common;
+ use Plack::Test;
++
+ my $handler = builder {
+     enable 'ConditionalGET';
+@@ -26,12 +27,14 @@
+     my $cb = shift;
+     subtest 'streaming' => sub {
++      plan tests => 2;
+         my $res = $cb->( GET "http://localhost/streaming-klingklangklong" );
+         is $res->code, 200, 'Response HTTP status';
+         is $res->content, 'klingklangklong', 'Response content';
+     };
+     subtest 'streaming not modified' => sub {
++      plan tests => 2;
+         # the middleware does not support streaming interface but make it at least not die
+         my $res = $cb->( GET
+             "http://localhost/streaming-klingklangklong",
This page took 0.073525 seconds and 4 git commands to generate.