# this generation of class bit needs to go into CCC
my @normalized = @components;
- $_ =~ s/\W/_/g for @normalized;
- my $class = $self->resultset_class . "::WITH::" . join ("::", @normalized);
+ $_ =~ s/[\W_]+/_/g for @normalized;
+ my $class = $self->resultset_class . "::+::" . 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::+::_A_Useless::_A_MoarUseless',
'A::Useless',
'A::MoarUseless',
'DBICTest::BaseResultSet',