Adjust to not munge config
[catagits/CatalystX-DynamicComponent.git] / t / 06_dynamicmodel_interface.t
CommitLineData
1fe9ba78 1use strict;
2use warnings;
3
4use FindBin qw/$Bin/;
5use lib "$Bin/lib";
6
bfbaf28f 7use Test::More tests => 2;
1fe9ba78 8
9BEGIN { use_ok('ModelsFromConfigInterfaceApp'); }
10
d0fd9aa1 11my $config = ModelsFromConfigInterfaceApp->config;
12delete $config->{'CatalystX::DynamicComponent::ModelToControllerReflector'};
13
14is_deeply($config, {
bfbaf28f 15 name => 'ModelsFromConfigInterfaceApp',
16 'Model::One' => {
17 class => 'SomeModelClass',
18 interface_roles => [qw/ SomeModelClassInterface /],
19 },
20}, 'Config is not munged');
21