[Templates-cvs] cvs commit: Template2/t url.t

cvs@template-toolkit.org cvs@template-toolkit.org


cvs         06/01/05 09:11:39

  Modified:    t        url.t
  Log:
  * restored original (broken) behaviour using & to join args
  
  Revision  Changes    Path
  2.7       +8 -9      Template2/t/url.t
  
  Index: url.t
  ===================================================================
  RCS file: /template-toolkit/Template2/t/url.t,v
  retrieving revision 2.6
  retrieving revision 2.7
  diff -u -r2.6 -r2.7
  --- url.t	2005/12/23 17:24:58	2.6
  +++ url.t	2006/01/05 09:11:39	2.7
  @@ -11,7 +11,7 @@
   # This is free software; you can redistribute it and/or modify it
   # under the same terms as Perl itself.
   #
  -# $Id: url.t,v 2.6 2005/12/23 17:24:58 darren Exp $
  +# $Id: url.t,v 2.7 2006/01/05 09:11:39 abw Exp $
   #
   #========================================================================
   
  @@ -23,7 +23,6 @@
   $^W = 1;
   
   $Template::Test::DEBUG = 0;
  -$Template::Plugin::URL::JOINER = '&';
   
   my $urls = {
       product => {
  @@ -121,7 +120,7 @@
   there
   here?any=where
   every?which=way
  -every?which=way&you=can
  +every?which=way&you=can
   
   -- test --
   [% USE url('there', name='fred') -%]
  @@ -133,8 +132,8 @@
   -- expect --
   there?name=fred
   there?name=tom
  -there?age=24&name=fred
  -there?age=42&name=frank
  +there?age=24&name=fred
  +there?age=42&name=frank
   
   -- test --
   [% USE url('/cgi-bin/woz.pl') -%]
  @@ -148,7 +147,7 @@
   [% url  %]
   
   -- expect --
  -/script?one=1&three=3&three=6&three=9&two=2&two=4
  +/script?one=1&three=3&three=6&three=9&two=2&two=4
   
   -- test --
   [% url.product.view %]
  @@ -162,11 +161,11 @@
   [% url.product.add(style='compact') %]
   -- expect --
   /product?action=add
  -/product?action=add&style=compact
  +/product?action=add&style=compact
   
   -- test --
   [% url.product.edit %]
   [% url.product.edit(style='compact') %]
   -- expect --
  -/product?action=edit&style=editor
  -/product?action=edit&style=compact
  +/product?action=edit&style=editor
  +/product?action=edit&style=compact