[Rt-commit] rt branch, create-action, updated. aa7e885d25fafd4ce0f06b54f21069a298d9fbcf

sartak at bestpractical.com sartak at bestpractical.com
Thu Nov 19 17:00:33 EST 2009


The branch, create-action has been updated
       via  aa7e885d25fafd4ce0f06b54f21069a298d9fbcf (commit)
      from  b1fc31f71fafb9a398a107f80d4163ff7385d897 (commit)

Summary of changes:
 t/web/attachments.t |    9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

- Log -----------------------------------------------------------------
commit aa7e885d25fafd4ce0f06b54f21069a298d9fbcf
Author: Shawn M Moore <sartak at bestpractical.com>
Date:   Thu Nov 19 17:00:14 2009 -0500

    Use Jifty-style form submission

diff --git a/t/web/attachments.t b/t/web/attachments.t
index e21ccba..dc37f62 100644
--- a/t/web/attachments.t
+++ b/t/web/attachments.t
@@ -18,10 +18,11 @@ $m->field('queue', $qid);
 $m->submit;
 is($m->status, 200, "request successful");
 $m->content_like(qr/Create a new ticket/, 'ticket create page');
-$m->form_name('ticket_create');
-$m->field('subject', 'Attachments test');
-$m->field('attach',  LogoFile);
-$m->field('content', 'Some content');
+$m->fill_in_action_ok('create_ticket', (
+    subject     => 'Attachments test',
+    attachments => LogoFile,
+    content     => 'Some content',
+));
 $m->submit;
 is($m->status, 200, "request successful");
 

-----------------------------------------------------------------------


More information about the Rt-commit mailing list