Skip to content

Commit

Permalink
add test unit headers_to_array with multiple same headers
Browse files Browse the repository at this point in the history
  • Loading branch information
geistteufel authored and Alexis Sukrieh committed Mar 1, 2011
1 parent 2dc8f67 commit 5bdf71c
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions t/12_response/09_headers_to_array.t
@@ -0,0 +1,22 @@
package main;
use strict;
use warnings;
use Test::More tests => 1, import => ['!pass'];

{

use Dancer;
get '/' => sub {
push_header A => 1;
push_header A => 2;
push_header B => 3;
};

}

use Dancer::Test;

response_headers_are_deeply [GET => '/'],
[ 'Content-Type' => 'text/html', 'A' => 1, 'A' => 2, 'B' => 3];

1;

0 comments on commit 5bdf71c

Please sign in to comment.