-use Test::More tests => 7;
+use Test::More tests => 10;
use strict;
use warnings;
my @complist =
map { "MyApp::$_"; }
- qw/C::Controller M::Model V::View Controller::C Model::M View::V/;
+ qw/C::Controller M::Model V::View Controller::C Model::M View::V Controller::Model::Dummy::Model Model::Dummy::Model/;
+my $thingie={};
+bless $thingie,'MyApp::Model::Test::Object';
+push @complist,$thingie;
{
package MyApp;
is( MyApp->model('Model'), 'MyApp::M::Model', 'M::Model ok' );
+is( MyApp->model('Dummy::Model'), 'MyApp::Model::Dummy::Model', 'Model::Dummy::Model ok' );
+
+isa_ok( MyApp->model('Test::Object'), 'MyApp::Model::Test::Object', 'Test::Object ok' );
+
+is( MyApp->controller('Model::Dummy::Model'), 'MyApp::Controller::Model::Dummy::Model', 'Controller::Model::Dummy::Model ok' );
+
is( MyApp->view('V'), 'MyApp::View::V', 'View::V ok' );
is( MyApp->controller('C'), 'MyApp::Controller::C', 'Controller::C ok' );