Permalink
Browse files

vertical code alignment

  • Loading branch information...
ambs committed Aug 24, 2011
1 parent 72d3776 commit 8a4dfd21ed4ad1e3cbc0f6997d1ccfdeaf30da0d
Showing with 3 additions and 2 deletions.
  1. +3 −2 t/dispatcher.t
View
@@ -130,10 +130,11 @@ foreach my $test (@tests) {
my $resp = $dispatcher->dispatch($env);
- is $resp->[0] => $expected->[0], "Return code ok.";
+ is $resp->[0] => $expected->[0], "Return code ok.";
is_deeply $resp->[1] => $expected->[1], "Headers ok.";
+
if (ref($expected->[2]) eq "Regexp") {
- like $resp->[2][0] => $expected->[2], "Contents ok.";
+ like $resp->[2][0] => $expected->[2], "Contents ok.";
} else {
is_deeply $resp->[2] => $expected->[2], "Contents ok.";
}

0 comments on commit 8a4dfd2

Please sign in to comment.