Cope with changes in Catalyst 5.90007 in t/model_collectionofrepos.t.
Dan Brook [Sun, 18 Mar 2012 21:51:30 +0000 (21:51 +0000)]
t/model_collectionofrepos.t

index 4736dd5..63589a7 100644 (file)
@@ -53,12 +53,11 @@ our $ctx_gen = sub {
     my ($cb, %args) = @_;
     my $ctx = $mock_ctx_meta->new_object(
         response    => Catalyst::Response->new,
-        request     => Catalyst::Request->new(uri => URI->new("http://$host/")),
+        # Too lazy to mock up Catalyst::Log
+        request     => Catalyst::Request->new(uri => URI->new("http://$host/"), _log => 1),
         stash       => {},
         %args
     );
-    $ctx->response->_context($ctx);
-    $ctx->request->_context($ctx);
     $cb->($ctx) if $cb;
     return $ctx;
 };