Author: bob Date: 2012-04-13 19:18:40 +0100 (Fri, 13 Apr 2012) New Revision: 1334
Modified: trunk/t/34_search_paging.t trunk/t/62_bug_trailing_whitespace.t trunk/t/87_more_recent_changes.t Log: remove warnings caused havign more mys than we need now.
Modified: trunk/t/34_search_paging.t =================================================================== --- trunk/t/34_search_paging.t 2012-04-13 15:43:59 UTC (rev 1333) +++ trunk/t/34_search_paging.t 2012-04-13 18:18:40 UTC (rev 1334) @@ -67,7 +67,7 @@ # We must create a new search object after changing the geo_handler # in order to force it to create a fresh locator. $config->geo_handler( 2 ); - my $search = OpenGuides::Search->new( config => $config ); + $search = OpenGuides::Search->new( config => $config );
foreach my $i ( 1 .. 50 ) { OpenGuides::Test->write_data( @@ -78,7 +78,7 @@ ); }
- my $output = $search->run( + $output = $search->run( return_output => 1, vars => { osie_dist => 1500, @@ -105,7 +105,7 @@ # We must create a new search object after changing the geo_handler # in order to force it to create a fresh locator. $config->geo_handler( 3 ); - my $search = OpenGuides::Search->new( config => $config ); + $search = OpenGuides::Search->new( config => $config );
foreach my $i ( 1 .. 50 ) { OpenGuides::Test->write_data( @@ -116,7 +116,7 @@ ); }
- my $output = $search->run( + $output = $search->run( return_output => 1, vars => { latlong_dist => 1500,
Modified: trunk/t/62_bug_trailing_whitespace.t =================================================================== --- trunk/t/62_bug_trailing_whitespace.t 2012-04-13 15:43:59 UTC (rev 1333) +++ trunk/t/62_bug_trailing_whitespace.t 2012-04-13 18:18:40 UTC (rev 1334) @@ -40,13 +40,13 @@
$config->geo_handler( 2 ); - my $q = CGI->new( "" ); + $q = CGI->new( "" ); $q->param( -name => "osie_x", -value => " 100000 " ); $q->param( -name => "osie_y", -value => " 200000 " ); $q->param( -name => "categories", -value => "" ); #avoid uninit val warning $q->param( -name => "locales", -value => "" ); #avoid uninit val warning
- my %metadata_vars = OpenGuides::Template->extract_metadata_vars( + %metadata_vars = OpenGuides::Template->extract_metadata_vars( wiki => $guide->wiki, config => $config, cgi_obj => $q, @@ -57,13 +57,13 @@ is( $metadata_vars{osie_y}, "200000", "...and osie_y" );
$config->geo_handler( 3 ); - my $q = CGI->new( "" ); + $q = CGI->new( "" ); $q->param( -name => "latitude", -value => " 1.463113 " ); $q->param( -name => "longitude", -value => " -0.215293 " ); $q->param( -name => "categories", -value => "" ); #avoid uninit val warning $q->param( -name => "locales", -value => "" ); #avoid uninit val warning
- my %metadata_vars = OpenGuides::Template->extract_metadata_vars( + %metadata_vars = OpenGuides::Template->extract_metadata_vars( wiki => $guide->wiki, config => $config, cgi_obj => $q,
Modified: trunk/t/87_more_recent_changes.t =================================================================== --- trunk/t/87_more_recent_changes.t 2012-04-13 15:43:59 UTC (rev 1333) +++ trunk/t/87_more_recent_changes.t 2012-04-13 18:18:40 UTC (rev 1334) @@ -135,7 +135,7 @@
# set show_minor_edits to 0. -my $cookie = OpenGuides::CGI->make_prefs_cookie( +$cookie = OpenGuides::CGI->make_prefs_cookie( config => $config, username => "bob", include_geocache_link => 1,
openguides-commits@lists.openguides.org