[Jifty-commit] r6624 - in jifty/trunk: t/TestApp-Plugin-REST/t
Jifty commits
jifty-commit at lists.jifty.org
Tue Mar 17 11:50:57 EDT 2009
Author: sartak
Date: Tue Mar 17 11:50:57 2009
New Revision: 6624
Modified:
jifty/trunk/ (props changed)
jifty/trunk/t/TestApp-Plugin-REST/t/03-format.t
Log:
r81284 at onn: sartak | 2009-03-17 11:50:47 -0400
result_of_post
Modified: jifty/trunk/t/TestApp-Plugin-REST/t/03-format.t
==============================================================================
--- jifty/trunk/t/TestApp-Plugin-REST/t/03-format.t (original)
+++ jifty/trunk/t/TestApp-Plugin-REST/t/03-format.t Tue Mar 17 11:50:57 2009
@@ -50,6 +50,23 @@
}
}
+sub result_of_post {
+ local $Test::Builder::Level = $Test::Builder::Level + 1;
+ my $request = shift;
+ my $parameters = shift;
+ my $test = shift;
+
+ if (!ref($request)) {
+ $request = {
+ mech_method => 'post',
+ mech_args => [$parameters],
+ url => $request,
+ };
+ }
+
+ result_of($request, $test);
+}
+
result_of '/=/model' => sub {
is_deeply($_[0], [
'TestApp.Plugin.REST.Model.Group',
More information about the Jifty-commit
mailing list