[Jifty-commit] jifty branch, plack, updated. d0c380a6a4e5b5a338b95207b814b32246a85974
Jifty commits
jifty-commit at lists.jifty.org
Fri Jan 8 23:01:20 EST 2010
The branch, plack has been updated
via d0c380a6a4e5b5a338b95207b814b32246a85974 (commit)
from d0c066efb2346370235a58a0d9559b214c8b283f (commit)
Summary of changes:
t/TestApp/lib/TestApp/Dispatcher.pm | 6 ++++++
t/TestApp/lib/TestApp/View.pm | 4 +++-
t/TestApp/t/09-redirect.t | 6 +++++-
3 files changed, 14 insertions(+), 2 deletions(-)
- Log -----------------------------------------------------------------
commit d0c380a6a4e5b5a338b95207b814b32246a85974
Author: Alex Vandiver <alexmv at bestpractical.com>
Date: Fri Jan 8 23:00:43 2010 -0500
Add a test for the REQUEST_URI bug that d0c066e fixed by using ->path
diff --git a/t/TestApp/lib/TestApp/Dispatcher.pm b/t/TestApp/lib/TestApp/Dispatcher.pm
index c485c46..ddb6a01 100644
--- a/t/TestApp/lib/TestApp/Dispatcher.pm
+++ b/t/TestApp/lib/TestApp/Dispatcher.pm
@@ -116,5 +116,11 @@ before '/content-type-bug' => run {
};
+before '/someplace' => run {
+ my $result = Jifty::Result->new;
+ $result->action_class("TestApp::Action::DoSomething");
+ Jifty->web->response->result(foo => $result);
+ redirect '/otherplace';
+};
1;
diff --git a/t/TestApp/lib/TestApp/View.pm b/t/TestApp/lib/TestApp/View.pm
index 6614745..e4eb256 100644
--- a/t/TestApp/lib/TestApp/View.pm
+++ b/t/TestApp/lib/TestApp/View.pm
@@ -151,6 +151,8 @@ template 'use_mason_wrapper' => page {
};
-
+template 'otherplace' => page {
+ form { }
+};
1;
diff --git a/t/TestApp/t/09-redirect.t b/t/TestApp/t/09-redirect.t
index 862e704..6c7f20e 100644
--- a/t/TestApp/t/09-redirect.t
+++ b/t/TestApp/t/09-redirect.t
@@ -10,7 +10,7 @@ still get run.
=cut
-use Jifty::Test::Dist tests => 6;
+use Jifty::Test::Dist tests => 8;
use Jifty::Test::WWW::Mechanize;
my $server = Jifty::Test->make_server;
@@ -26,5 +26,9 @@ $mech->fill_in_action_ok('go', url => $URL."/index.html");
$mech->submit_html_ok();
like($mech->uri, qr|/index.html|, "At index");
+# Forms should submit to their current URL after a continuation call
+$mech->get_ok("$URL/someplace", "Explicit redirect");
+$mech->content_like(qr{action="/otherplace"});
+
1;
-----------------------------------------------------------------------
More information about the Jifty-commit
mailing list