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_deeply $model->say_hello({name => 'world'}), { type => 'say_hello_response', body => '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');