3 use Test::More tests => 6;
10 # Naughty, should make an app instance.
11 my $model = DynamicAppDemo->model('One');
14 isa_ok $model, 'SomeModelClass';
15 is $model->say_hello('world'), 'Hello world';
17 ok(DynamicAppDemo->model('Two'), 'Have model Two');
19 ok(!DynamicAppDemo->model('Three'), 'No model Three');
21 ok(!DynamicAppDemo->model('Four'), 'No model Four');