[Jifty-commit] r6627 - in jifty/trunk: t/TestApp-Plugin-REST/t
Jifty commits
jifty-commit at lists.jifty.org
Tue Mar 17 13:18:09 EDT 2009
Author: sartak
Date: Tue Mar 17 13:18:09 2009
New Revision: 6627
Modified:
jifty/trunk/ (props changed)
jifty/trunk/t/TestApp-Plugin-REST/t/03-format.t
Log:
r81290 at onn: sartak | 2009-03-17 13:16:44 -0400
Keep a $FORMAT_NUMBER so we can still use is_deeply for record creation (which will have different ids)
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 13:18:09 2009
@@ -19,6 +19,8 @@
$u1->create(name => 'test', email => 'test at example.com');
ok($u1->id);
+our $FORMAT_NUMBER;
+
sub result_of {
local $Test::Builder::Level = $Test::Builder::Level + 1;
my $request = shift;
@@ -36,7 +38,10 @@
json => \&Jifty::JSON::jsonToObj,
);
+ local $FORMAT_NUMBER = 0;
for my $format (keys %loaders) {
+ $FORMAT_NUMBER++;
+
my $url = $URL . $request->{url} . '.' . $format;
my $method = $request->{mech_method};
More information about the Jifty-commit
mailing list