[Jifty-commit] r6679 - jifty/trunk/t/TestApp-Plugin-REST/t
Jifty commits
jifty-commit at lists.jifty.org
Fri Mar 20 11:59:50 EDT 2009
Author: sartak
Date: Fri Mar 20 11:59:49 2009
New Revision: 6679
Modified:
jifty/trunk/t/TestApp-Plugin-REST/t/02-basic-use.t
Log:
Be less demanding of the error response code, just make sure the POST failed
Modified: jifty/trunk/t/TestApp-Plugin-REST/t/02-basic-use.t
==============================================================================
--- jifty/trunk/t/TestApp-Plugin-REST/t/02-basic-use.t (original)
+++ jifty/trunk/t/TestApp-Plugin-REST/t/02-basic-use.t Fri Mar 20 11:59:49 2009
@@ -81,8 +81,8 @@
$mech->post( $URL . '/=/model/User', { name => "moose", email => 'moose at example.com' } );
is($mech->status, 200, "create via POST to model worked");
-$mech->post( $URL . '/=/model/Group', { } );
-is($mech->status, 403, "create via POST to model with disallowed create action failed with 403");
+my $response = $mech->post( $URL . '/=/model/Group', { } );
+ok(!$response->is_success, "create via POST to model with disallowed create action failed");
# on GET '/=/search/*/**' => \&search_items;
$mech->get_ok('/=/search/user/id/1.yml');
More information about the Jifty-commit
mailing list