X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Funit_core_mvc.t;h=0dbbd80df6a815af9915016da2796fd99c81409f;hb=3b4d12511c59793e85feca1ac1b4a8c2c5f1a6ae;hp=9229ee7ccd2af582d06762be34569f4a95ca52fa;hpb=72f87c4bec018bc59ef69db7c55b9a8d68bb503d;p=catagits%2FCatalyst-Runtime.git diff --git a/t/unit_core_mvc.t b/t/unit_core_mvc.t index 9229ee7..0dbbd80 100644 --- a/t/unit_core_mvc.t +++ b/t/unit_core_mvc.t @@ -82,9 +82,9 @@ is ( MyApp->model , 'MyApp::Model::M', 'default_model in class method ok'); #checking @args passed to ACCEPT_CONTEXT my $args; { - no warnings; - *MyApp::Model::M::ACCEPT_CONTEXT = sub { my ($self, $c, @args) = @_; $args= \@args}; - *MyApp::View::V::ACCEPT_CONTEXT = sub { my ($self, $c, @args) = @_; $args= \@args}; + no warnings; + *MyApp::Model::M::ACCEPT_CONTEXT = sub { my ($self, $c, @args) = @_; $args= \@args}; + *MyApp::View::V::ACCEPT_CONTEXT = sub { my ($self, $c, @args) = @_; $args= \@args}; } MyApp->model('M', qw/foo bar/); is_deeply($args, [qw/foo bar/], '$c->model args passed to ACCEPT_CONTEXT ok');