[Jifty-commit] r6334 - in jifty/trunk/t/TestApp-Mason: share/web/templates/foo
Jifty commits
jifty-commit at lists.jifty.org
Tue Feb 10 20:50:47 EST 2009
Author: sunnavy
Date: Tue Feb 10 20:50:47 2009
New Revision: 6334
Added:
jifty/trunk/t/TestApp-Mason/share/web/templates/foo/
jifty/trunk/t/TestApp-Mason/share/web/templates/foo/dhandler
jifty/trunk/t/TestApp-Mason/share/web/templates/foo/index.html
jifty/trunk/t/TestApp-Mason/t/index_vs_dhandler.t
Log:
add dhandler vs index.html test
Added: jifty/trunk/t/TestApp-Mason/share/web/templates/foo/dhandler
==============================================================================
--- (empty file)
+++ jifty/trunk/t/TestApp-Mason/share/web/templates/foo/dhandler Tue Feb 10 20:50:47 2009
@@ -0,0 +1 @@
+this is foo/dhandler
Added: jifty/trunk/t/TestApp-Mason/share/web/templates/foo/index.html
==============================================================================
--- (empty file)
+++ jifty/trunk/t/TestApp-Mason/share/web/templates/foo/index.html Tue Feb 10 20:50:47 2009
@@ -0,0 +1 @@
+this is foo/index.html.
Added: jifty/trunk/t/TestApp-Mason/t/index_vs_dhandler.t
==============================================================================
--- (empty file)
+++ jifty/trunk/t/TestApp-Mason/t/index_vs_dhandler.t Tue Feb 10 20:50:47 2009
@@ -0,0 +1,15 @@
+use strict;
+use warnings;
+
+use Test::More tests => 5;
+use Jifty::Test::Dist;
+use Jifty::Test::WWW::Mechanize;
+
+my $server = Jifty::Test->make_server;
+isa_ok($server, 'Jifty::Server');
+my $URL = $server->started_ok;
+my $mech = Jifty::Test::WWW::Mechanize->new;
+$mech->get_ok($URL . '/foo');
+
+$mech->content_like( qr{this is foo/index.html} );
+$mech->content_unlike( qr{this is foo/dhandler} );
More information about the Jifty-commit
mailing list