Skip to content
Browse files

Fix page delete test after restricting actions to existing pages

  • Loading branch information...
1 parent b9ec7ac commit ed27232181a32e72e83829943fbfee7ea92648ff @marcusramberg marcusramberg committed Sep 5, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 t/c/page_delete.t
View
4 t/c/page_delete.t
@@ -18,7 +18,7 @@ BEGIN
eval "use WWW::Mechanize::TreeBuilder";
plan skip_all => 'need WWW::Mechanize::TreeBuilder' if $@;
- plan tests => 32;
+ plan tests => 31;
}
use_ok('MojoMojo::Controller::Page');
@@ -106,7 +106,7 @@ ok $mech->click_button(value => 'Yes'), 'click the "Yes" button';
#----------------------------------------------------------------------------
# Search for deleted page
-$mech->submit_form_ok(
+$mech->post( '/.search',
{
form_number => 1,
fields => { q => $random }

0 comments on commit ed27232

Please sign in to comment.
Something went wrong with that request. Please try again.