[Catalyst-dev] Tests for :Args(0) being overwritten by :Args()

Dave Cardwell list+catalyst-dev at davecardwell.co.uk
Tue May 22 17:47:05 GMT 2007


In the following example, I would expect args_order_0 to fire:

sub args_order_0   :Chained('/') :PathPart('chained/args_order') :Args(0) {=
 }
sub args_order_inf :Chained('/') :PathPart('chained/args_order') :Args( ) {=
 }

However, a call to http://localhost/chained/args_order calls
args_order_inf. After highlighting this problem to mst he asked that I
create the attached test case and send it to the list, so here you go
:)

The patches were created from
t/live_component_controller_action_chained.t and
t/lib/TestApp/Controller/Action/Chained.pm of the latest Catalyst
trunk.

-- =

Best wishes,
Dave Cardwell.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Chained.pm.patch
Type: application/octet-stream
Size: 259 bytes
Desc: not available
Url : http://lists.scsys.co.uk/pipermail/catalyst-dev/attachments/20070522/=
963f0fb2/Chained.pm.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: live_component_controller_action_chained.t.patch
Type: application/octet-stream
Size: 803 bytes
Desc: not available
Url : http://lists.scsys.co.uk/pipermail/catalyst-dev/attachments/20070522/=
963f0fb2/live_component_controller_action_chained.t.obj


More information about the Catalyst-dev mailing list