Permalink
Browse files

Fix $mech->post vs. ->post_ok confusion

$mech->post treats the description as a (usually illegal) field name;
this patch uses $mech->post_ok instead and updates the planned tests
count.

Partly fixes #108
  • Loading branch information...
iarnell committed Nov 2, 2012
1 parent 386b9f5 commit 9a0966091cdde10bc16f71aebfca5cc0718a10de
Showing with 2 additions and 2 deletions.
  1. +2 −2 t/c/page_delete.t
View
@@ -18,7 +18,7 @@ BEGIN
eval "use WWW::Mechanize::TreeBuilder";
plan skip_all => 'need WWW::Mechanize::TreeBuilder' if $@;
- plan tests => 31;
+ plan tests => 32;
}
use_ok('MojoMojo::Controller::Page');
@@ -106,7 +106,7 @@ ok $mech->click_button(value => 'Yes'), 'click the "Yes" button';
#----------------------------------------------------------------------------
# Search for deleted page
-$mech->post( '/.search',
+$mech->post_ok( '/.search',
{
form_number => 1,
fields => { q => $random }

0 comments on commit 9a09660

Please sign in to comment.