Fix test warning
Tomas Doran [Sat, 19 Dec 2009 14:56:19 +0000 (14:56 +0000)]
t/lib/Test/Serialize/Controller/REST.pm

index 118e237..4e7d1ba 100644 (file)
@@ -33,7 +33,7 @@ __PACKAGE__->config(
 sub monkey_put : Local : ActionClass('Deserialize') {
     my ( $self, $c ) = @_;
     if ( ref($c->req->data) eq "HASH" ) {
-        my $out = $c->req->data->{'sushi'} . $c->req->data->{'chicken'}||'';
+        my $out = ($c->req->data->{'sushi'}||'') . ($c->req->data->{'chicken'}||'');
         utf8::encode($out);
         $c->res->output( $out );
     } else {