Add include/exclude options so that havingModelsFromConfig loaded doesn't involve...
[catagits/CatalystX-DynamicComponent.git] / t / 04_dynamicmodel.t
index 3824a96..48274a5 100644 (file)
@@ -1,6 +1,6 @@
 use strict;
 use warnings;
-use Test::More tests => 3;
+use Test::More tests => 6;
 
 use FindBin qw/$Bin/;
 use lib "$Bin/lib";
@@ -14,3 +14,9 @@ ok $model;
 isa_ok $model, 'SomeModelClass';
 is $model->say_hello('world'), 'Hello world';
 
+ok(DynamicAppDemo->model('Two'), 'Have model Two');
+
+ok(!DynamicAppDemo->model('Three'), 'No model Three');
+
+ok(!DynamicAppDemo->model('Four'), 'No model Four');
+