-use Test::More tests => 44;
+use Test::More tests => 45;
use strict;
use warnings;
my $c = bless {}, 'MyApp';
+ # test accept-context with class rather than instance
+ MyApp->model('M', qw/foo bar/);
+ is_deeply($args, [qw/foo bar/], 'MyApp->model args passed to ACCEPT_CONTEXT ok');
+
+
$c->model('M', qw/foo bar/);
is_deeply($args, [qw/foo bar/], '$c->model args passed to ACCEPT_CONTEXT ok');
# regexp fallback
$c->view('::View::V', qw/foo3 bar3/);
is_deeply($args, [qw/foo3 bar3/], 'args passed to ACCEPT_CONTEXT ok');
+
+
}