[Jifty-commit] r3814 - in Test-WWW-Declare: lib/Test/WWW
jifty-commit at lists.jifty.org
jifty-commit at lists.jifty.org
Mon Aug 6 15:12:35 EDT 2007
Author: sartak
Date: Mon Aug 6 15:12:34 2007
New Revision: 3814
Modified:
Test-WWW-Declare/ (props changed)
Test-WWW-Declare/lib/Test/WWW/Declare.pm
Log:
r29966 at caladan: sartak | 2007-08-06 15:11:58 -0400
synopsis
Modified: Test-WWW-Declare/lib/Test/WWW/Declare.pm
==============================================================================
--- Test-WWW-Declare/lib/Test/WWW/Declare.pm (original)
+++ Test-WWW-Declare/lib/Test/WWW/Declare.pm Mon Aug 6 15:12:34 2007
@@ -31,7 +31,30 @@
Test::More->export_to_level(2);
}
-=head2 DESCRIPTION
+=head1 SYNOPSIS
+
+ use Test::WWW::Declare tests => 3;
+ use Your::Web::App;
+
+ session 'testuser' => run {
+ flow 'log in and out' => check {
+ flow 'log in' => check {
+ get 'http://localhost/';
+ fill form 'login' => check {
+ username => 'testuser',
+ password => 'drowssap',
+ };
+ content should contain 'log out';
+ };
+
+ flow 'log out' => check {
+ get 'http://localhost/';
+ click href 'log out';
+ };
+ };
+ };
+
+=head1 DESCRIPTION
Often in web apps, tests are very dependent on the state set up by previous
tests. If one test fails (e.g. "follow the link to the admin page") then it's
More information about the Jifty-commit
mailing list