[Jifty-commit] r2633 - jifty/trunk/t/TestApp-Plugin-REST/t

jifty-commit at lists.jifty.org jifty-commit at lists.jifty.org
Sat Jan 27 00:03:00 EST 2007


Author: audreyt
Date: Sat Jan 27 00:03:00 2007
New Revision: 2633

Modified:
   jifty/trunk/t/TestApp-Plugin-REST/t/02-basic-use.t

Log:
* unTODO passing tests in TestApp::Plugin::REST

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	Sat Jan 27 00:03:00 2007
@@ -134,19 +134,10 @@
 $mech->get_ok('/=/action/DoSomething.yml');
 is($mech->status, 200);
 
-TODO: {
-    local $TODO = "Waiting for YAML parameter lists for action";
-    my %args;
-
-    # Eval so this doesn't blow up if get_content doesn't return a hashref
-    eval {
-        %args = %{get_content()};
-    };
-
-    ok($args{email}, "Action has an email parameter");
-    is($args{email}{label}, 'Email', 'email has the correct label');
-    is($args{email}{default}, 'email at example.com', 'email has the correct default');
-}
+my %args = %{get_content()};
+ok($args{email}, "Action has an email parameter");
+is($args{email}{label}, 'Email', 'email has the correct label');
+is($args{email}{default_value}, 'example at email.com', 'email has the correct default');
 
 
 # on POST   '/=/action/*'    => \&run_action;


More information about the Jifty-commit mailing list