Do 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";
84d8e4e1 6use Data::Dumper;
1fe9ba78 7
bfbaf28f 8use Test::More tests => 2;
1fe9ba78 9
10BEGIN { use_ok('ModelsFromConfigInterfaceApp'); }
11
d0fd9aa1 12my $config = ModelsFromConfigInterfaceApp->config;
d0fd9aa1 13
84d8e4e1 14my $expected = {
bfbaf28f 15 name => 'ModelsFromConfigInterfaceApp',
16 'Model::One' => {
17 class => 'SomeModelClass',
18 interface_roles => [qw/ SomeModelClassInterface /],
19 },
84d8e4e1 20};
21
22is_deeply($config, $expected, 'Config is not munged')
23 or warn Dumper([$config, $expected]);
bfbaf28f 24