Stop the request needing the context, just pass in the logger instead
[catagits/Catalyst-Runtime.git] / t / aggregate / unit_core_uri_with.t
index c8a3ef0..5e86318 100644 (file)
@@ -1,12 +1,14 @@
 use strict;
 use warnings;
 
-use Test::More tests => 10;
+use Test::More;
 use URI;
+use Catalyst::Log;
 
 use_ok('Catalyst::Request');
 
 my $request = Catalyst::Request->new( {
+                _log => Catalyst::Log->new,
                 uri => URI->new('http://127.0.0.1/foo/bar/baz')
               } );
 
@@ -23,6 +25,7 @@ is(
 );
 
 my $request2 = Catalyst::Request->new( {
+                _log => Catalyst::Log->new,
                 uri => URI->new('http://127.0.0.1/foo/bar/baz?bar=gorch')
               } );
 is(
@@ -67,3 +70,5 @@ is(
     'append mode URI appends arrayref param'
 );
 
+done_testing;
+