[Jifty-commit] r7107 - in jifty/trunk: t/TestApp-Plugin-REST/t

Jifty commits jifty-commit at lists.jifty.org
Tue May 26 15:13:27 EDT 2009


Author: jesse
Date: Tue May 26 15:13:27 2009
New Revision: 7107

Modified:
   jifty/trunk/   (props changed)
   jifty/trunk/t/TestApp-Plugin-REST/t/03-format.t

Log:
 r63672 at 17h:  jesse | 2009-05-26 15:11:13 -0400
 * actually run all the REST dispatcher tests


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 May 26 15:13:27 2009
@@ -2,7 +2,7 @@
 use warnings;
 use strict;
 
-use Jifty::Test::Dist tests => 46;
+use Jifty::Test::Dist tests => 99;
 use Jifty::Test::WWW::Mechanize;
 
 my $server  = Jifty::Test->make_server;
@@ -144,7 +144,6 @@
     });
 };
 
-__END__
 
 # on PUT    '/=/model/*/*/*' => \&replace_item;
 # on DELETE '/=/model/*/*/*' => \&delete_item;
@@ -165,6 +164,11 @@
 $content = get_content();
 is_deeply($content, [{ name => 'test', email => 'test at example.com', id => 1, tasty => undef }]);
 
+$mech->get_ok('/=/search/user/id/1');
+$content = get_content();
+unlike($content, qr/HASH/);
+
+
 $mech->get_ok('/=/search/user/id/1/name/test/email.yml');
 $content = get_content();
 is_deeply($content, ['test at example.com']);
@@ -180,6 +184,7 @@
 # on GET    '/=/action'      => \&list_actions;
 
 my @actions = qw(
+                 TestApp.Plugin.REST.Action.CreateGroup
                  TestApp.Plugin.REST.Action.UpdateGroup
                  TestApp.Plugin.REST.Action.DeleteGroup
                  TestApp.Plugin.REST.Action.SearchGroup
@@ -252,6 +257,7 @@
 # Test YAML posts
 $mech->post ( $URL . '/=/action/DoSomething.yml', { email => 'good at email.com' } );
 
+my %content;
 eval {
     %content = %{get_content()};
 };


More information about the Jifty-commit mailing list