[Catalyst] correct module name for generated tests when generating static schema/model?

Daniel McBrearty danielmcbrearty at gmail.com
Mon Jul 3 11:23:30 CEST 2006


I am trying to use this command

script/engoi_create.pl model Schema DBIC::Schema
Engoi::Schema::EngoiDb create=static ...

to make my model with a seperate static schema.

Everything seems AOK:

 exists "/home/daniel/work/trunk/Engoi/script/../lib/Engoi/Model"
 exists "/home/daniel/work/trunk/Engoi/script/../t"
Dumping manual schema for Engoi::Schema::EngoiDb to directory
/home/daniel/work/trunk/Engoi/script/../lib ...
Schema dump completed.
 exists "/home/daniel/work/trunk/Engoi/script/../lib/Engoi/Model/Schema.pm"

I find my generated Schema under lib/Engoi/Schema/EngoiDb, and it
seems to work OK with teh generated model, ... BUT the generated tests
contain this:

use Test::More tests => 2;
use_ok( Catalyst::Test, 'Engoi' );
use_ok('Engoi::Model::Schema::Attributes');

which fails because it should actually be

use_ok('Engoi::Schema::Attributes');

what am I doing wrong ... ?

cheers

D



-- 
Daniel McBrearty
email : danielmcbrearty at gmail.com
www.engoi.com : the multi - language vocab trainer
BTW : 0873928131



More information about the Catalyst mailing list