use warnings;
use lib 't/lib';
use Test::More qw(no_plan);
-use Data::Dumper; $Data::Dumper::Indent = 1;
BEGIN { use_ok 'MTITest'; }
'parent rel points to raw parent'
);
-warn Dumper $raw_bar->_columns;
+my $foo = MTITest->source('Foo');
+my $bar = MTITest->source('Bar');
-warn Dumper $raw_bar->_relationships;
+is_deeply(
+ [ $foo->columns ],
+ [ qw(id a) ],
+ 'Columns for mti foo are still the same: id a'
+);
-warn Dumper(MTITest->source('JustATable')->_relationships);
+
+is_deeply(
+ [ $bar->columns ],
+ [ qw(id a words b) ],
+ 'Columns for mti bar now contain those of foo and the mixin: id a words b'
+);