Fix tests, add autobox to flatten interface roles so you can use a string or array...
[catagits/CatalystX-DynamicComponent.git] / t / 04_dynamicmodel.t
index 48274a5..00b8e90 100644 (file)
@@ -12,7 +12,7 @@ my $model = DynamicAppDemo->model('One');
 
 ok $model;
 isa_ok $model, 'SomeModelClass';
-is $model->say_hello('world'), 'Hello world';
+is_deeply $model->say_hello({name => 'world'}), { type => 'say_hello_response', body => 'Hello world' };
 
 ok(DynamicAppDemo->model('Two'), 'Have model Two');