[Jifty-commit] r1393 - in jifty: trunk/lib/Jifty
jifty-commit at lists.jifty.org
jifty-commit at lists.jifty.org
Wed Jun 28 17:51:00 EDT 2006
Author: nelhage
Date: Wed Jun 28 17:51:00 2006
New Revision: 1393
Modified:
jifty/ (props changed)
jifty/trunk/lib/Jifty/Test.pm
Log:
r13363 at phanatique: nelhage | 2006-06-28 23:48:28 +0200
Expanding the docs slightly to include the information from the HowDoI on the wiki
Modified: jifty/trunk/lib/Jifty/Test.pm
==============================================================================
--- jifty/trunk/lib/Jifty/Test.pm (original)
+++ jifty/trunk/lib/Jifty/Test.pm Wed Jun 28 17:51:00 2006
@@ -28,7 +28,8 @@
Merges the L</test_config> into the default configuration, resets the
database, and resets the fake "outgoing mail" folder. This is the
-method to override if you wish to do custom setup work.
+method to override if you wish to do custom setup work, such as insert
+test data into your database.
=cut
@@ -81,6 +82,18 @@
It is passed the current configuration.
+You can override this to provide application-specific test
+configuation, e.g:
+
+ sub test_config {
+ my $class = shift;
+ my ($config) = @_;
+ my $hash = $class->SUPER::test_config($config);
+ $hash->{framework}{LogConfig} = "etc/log-test.conf"
+
+ return $hash;
+ }
+
=cut
sub test_config {
More information about the Jifty-commit
mailing list