[Jifty-commit] r2360 - jifty/trunk/t

jifty-commit at lists.jifty.org jifty-commit at lists.jifty.org
Sat Dec 9 00:36:26 EST 2006


Author: agentz
Date: Sat Dec  9 00:36:24 2006
New Revision: 2360

Modified:
   jifty/trunk/t/12-param-schema.t

Log:
- added one failing test to t/12-param-schema.t, which
  demontrates the "length is XX" bug in action schema
  implementation.

Modified: jifty/trunk/t/12-param-schema.t
==============================================================================
--- jifty/trunk/t/12-param-schema.t	(original)
+++ jifty/trunk/t/12-param-schema.t	Sat Dec  9 00:36:24 2006
@@ -7,14 +7,14 @@
 
 =cut
 
-use Test::More tests => 15;
+use Test::More tests => 16;
 
 package Foo::Action::Bar;
 use Jifty::Param::Schema;
 use Jifty::Action schema {
 
 param keys =>
-    # length is 5,
+    length is 30,
     label is 'Search Keys',
     hints are 'Enter your search keys here!',
     default is 'blah blah blah';
@@ -37,6 +37,7 @@
 
 my $keys = $args->{keys};
 ok $keys, 'keys okay';
+is $keys->{length}, 30, 'length ok';
 is $keys->{label}, 'Search Keys', 'label ok';
 is $keys->{type}, 'text', 'type ok';
 is $keys->{hints}, 'Enter your search keys here!', 'hints okay';


More information about the Jifty-commit mailing list