[Catalyst] Re: Catalyst::Test & Test::DBIx::Class

Jason Galea lists at eightdegrees.com.au
Sun Dec 4 09:35:54 GMT 2011


ok cool.

 thanks, t0m.

On Sun, Dec 4, 2011 at 7:10 PM, Tomas Doran <bobtfish at bobtfish.net> wrote:

>
> On 4 Dec 2011, at 04:13, Jason Galea wrote:
>
>  hmm.. actually.. can I hand Catalyst::Test the schema I can get from
>> Test::DBIx::Class?
>>
>
> I think you can just force replace the schema, with something like
> MyApp->model('DB')->schema($**mytestschema);
>
> Alternatively, you can setup a test config (by writing out a config file
> with the extra DB details in) before using Catalyst::Test (although N.B.
> that use Catalyst::Test will happen at compile time, so you probably need
> the initial setup in a BEGIN block).
>
> Cheers
> t0m
>
>
> ______________________________**_________________
> List: Catalyst at lists.scsys.co.uk
> Listinfo: http://lists.scsys.co.uk/cgi-**bin/mailman/listinfo/catalyst<ht=
tp://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst>
> Searchable archive: http://www.mail-archive.com/**
> catalyst at lists.scsys.co.uk/<http://www.mail-archive.com/catalyst@lists.sc=
sys.co.uk/>
> Dev site: http://dev.catalyst.perl.org/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/catalyst/attachments/20111204/5d68e=
cef/attachment.htm


More information about the Catalyst mailing list