[Rt-commit] r7374 - rt/branches/3.7-EXPERIMENTAL-TUNIS/t/web
ruz at bestpractical.com
ruz at bestpractical.com
Tue Mar 27 12:22:32 EDT 2007
Author: ruz
Date: Tue Mar 27 12:22:32 2007
New Revision: 7374
Modified:
rt/branches/3.7-EXPERIMENTAL-TUNIS/t/web/attachments.t
Log:
* I don't why but there is no more form method in mechanize,
use form_name instead
Modified: rt/branches/3.7-EXPERIMENTAL-TUNIS/t/web/attachments.t
==============================================================================
--- rt/branches/3.7-EXPERIMENTAL-TUNIS/t/web/attachments.t (original)
+++ rt/branches/3.7-EXPERIMENTAL-TUNIS/t/web/attachments.t Tue Mar 27 12:22:32 2007
@@ -27,7 +27,7 @@
is($m->status, 200, "request successful");
$m->content_like(qr/Create a new ticket/, 'ticket create page');
-$m->form('TicketCreate');
+$m->form_name('TicketCreate');
$m->field('Subject', 'Attachments test');
$m->field('Attach', LogoFile);
$m->field('Content', 'Some content');
@@ -39,12 +39,12 @@
$m->content_like(qr/Download bplogo\.gif/, 'page has file name');
$m->follow_link_ok({text => 'Reply'}, "reply to the ticket");
-$m->form('TicketUpdate');
+$m->form_name('TicketUpdate');
$m->field('Attach', LogoFile);
$m->click('AddMoreAttach');
is($m->status, 200, "request successful");
-$m->form('TicketUpdate');
+$m->form_name('TicketUpdate');
$m->field('Attach', FaviconFile);
$m->field('UpdateContent', 'Message');
$m->click('SubmitTicket');
More information about the Rt-commit
mailing list