[Jifty-commit] r4892 - in Net-Jifty: .
jifty-commit at lists.jifty.org
jifty-commit at lists.jifty.org
Mon Jan 21 00:56:00 EST 2008
Author: sartak
Date: Mon Jan 21 00:55:59 2008
New Revision: 4892
Modified:
Net-Jifty/ (props changed)
Net-Jifty/t/003-crud.t
Log:
r50614 at onn: sartak | 2008-01-21 00:48:21 -0500
Text fixes, now that we don't use canonicalize_(action|model)
Modified: Net-Jifty/t/003-crud.t
==============================================================================
--- Net-Jifty/t/003-crud.t (original)
+++ Net-Jifty/t/003-crud.t Mon Jan 21 00:55:59 2008
@@ -18,21 +18,21 @@
is($name, 'request', 'used request for create');
isa_ok($args->[1], 'HTTP::Request', 'argument is an HTTP request');
is($args->[1]->method, 'POST', 'correct method (POST)');
-is($args->[1]->uri, 'http://jifty.org/=/model/JiftyApp.Model.Foo.yml', 'correct URL');
+is($args->[1]->uri, 'http://jifty.org/=/model/Foo.yml', 'correct URL');
like($args->[1]->content, qr/^(a=b&c=d|c=d&a=b)$/, 'correct arguments');
$j->ua->clear;
$j->read("Foo", a => 'b');
($name, $args) = $j->ua->next_call;
is($name, 'get', 'used get for read');
-is_deeply($args->[1], 'http://jifty.org/=/model/JiftyApp.Model.Foo/a/b.yml', 'correct URL');
+is_deeply($args->[1], 'http://jifty.org/=/model/Foo/a/b.yml', 'correct URL');
$j->ua->clear;
$j->update("Foo", a => 'b', c => 'C', d => 'e');
($name, $args) = $j->ua->next_call;
is($name, 'request', 'used request for update');
isa_ok($args->[1], 'HTTP::Request', 'got an HTTP::Request object');
-is($args->[1]->uri, 'http://jifty.org/=/model/JiftyApp.Model.Foo/a/b.yml', 'correct URL');
+is($args->[1]->uri, 'http://jifty.org/=/model/Foo/a/b.yml', 'correct URL');
like($args->[1]->content, qr/^(?:c=C&d=e|d=e&c=C)$/, 'correct arguments');
$j->ua->clear;
@@ -40,7 +40,7 @@
($name, $args) = $j->ua->next_call;
is($name, 'request', 'used request for delete');
isa_ok($args->[1], 'HTTP::Request', 'got an HTTP::Request object');
-is($args->[1]->uri, 'http://jifty.org/=/model/JiftyApp.Model.Foo/%22/%3F.yml', 'correct URL');
+is($args->[1]->uri, 'http://jifty.org/=/model/Foo/%22/%3F.yml', 'correct URL');
$j->ua->clear;
$j->act("Foo", '"' => '?');
@@ -48,6 +48,6 @@
is($name, 'request', 'used request for act');
isa_ok($args->[1], 'HTTP::Request', 'argument is an HTTP request');
is($args->[1]->method, 'POST', 'correct method (POST)');
-is($args->[1]->uri, 'http://jifty.org/=/action/JiftyApp.Action.Foo.yml', 'correct URL');
+is($args->[1]->uri, 'http://jifty.org/=/action/Foo.yml', 'correct URL');
is($args->[1]->content, '%22=%3F', 'correct argument');
More information about the Jifty-commit
mailing list