my @components = @{shift @_};
# this generation of class bit needs to go into CCC
- my $class = $self->resultset_class . "::WITH::" . join ("::", @components);
+ my @normalized = @components;
+ $_ =~ s/\W/_/g for @normalized;
+ my $class = $self->resultset_class . "::WITH::" . join ("::", @normalized);
Class::C3::Componentised->inject_base($class, $self->resultset_class);
$self->resultset_class($class);
isa_ok $schema->resultset('Artist'), 'A::Useless', 'Artist RS';
ok !$schema->resultset('CD')->isa('A::Useless'), 'CD RS is not A::Useless';
-my @classes = ('DBICTest::BaseResultSet::WITH::+A::Useless::+A::MoarUseless',
+my @classes = ('DBICTest::BaseResultSet::WITH::_A__Useless::_A__MoarUseless',
'A::Useless',
'A::MoarUseless',
'DBICTest::BaseResultSet',
'DBIx::Class::Componentised',
'Class::C3::Componentised',
'Class::Accessor::Grouped');
-warn "classes: " . Dumper \@classes;
is_deeply(mro::get_linear_isa(ref $schema->resultset('Artist')), \@classes, 'Proper ISA Stack Order');