[Catalyst] Using Test::WWW::Mechanize::Catalyst on a test database
lists at eightdegrees.com.au
Thu Feb 16 11:27:56 GMT 2012
On Thu, Feb 16, 2012 at 1:25 AM, Robert Rothenberg <robrwo at gmail.com> wrote:
> I would like to use Test::WWW::Mechanize::Catalyst with an alternative
> database schema (since I want to test reading and writing on a database
> the same schema but known data that is not the live database), but it's n=
> clear to me from reading the documentation on how to do this, or even if
> it's possible.
> I've found examples using Catalyst::Test with DBICx::TestDatabase, but I
> cannot get it to work. The line
> fails with
> Can't call method "schema" on an undefined value...
works for me so..
should work for you..
> Worse, the application uses some PostgreSQL extensions, so
> DBICx::TestDatabase is not appropriate.
> I am looking into Test::DBIx::Class as an alternative, but again, it's
> not clear how to change the database that Test::WWW::Mechanize uses.
> List: Catalyst at lists.scsys.co.uk
> Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
> Searchable archive:
> Dev site: http://dev.catalyst.perl.org/
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Catalyst