[Rt-commit] r19989 - in rtir/2.5/trunk: t

sunnavy at bestpractical.com sunnavy at bestpractical.com
Wed Jun 17 05:17:24 EDT 2009


Author: sunnavy
Date: Wed Jun 17 05:17:24 2009
New Revision: 19989

Modified:
   rtir/2.5/trunk/lib/RT/IR/Test/Web.pm
   rtir/2.5/trunk/t/019-webui-block-fields.t

Log:
move goto_edit_block method to Test/Web.pm

Modified: rtir/2.5/trunk/lib/RT/IR/Test/Web.pm
==============================================================================
--- rtir/2.5/trunk/lib/RT/IR/Test/Web.pm	(original)
+++ rtir/2.5/trunk/lib/RT/IR/Test/Web.pm	Wed Jun 17 05:17:24 2009
@@ -371,4 +371,14 @@
     );
 }
 
+sub goto_edit_block {
+    my $self = shift;
+    my $id   = shift;
+
+    $self->display_ticket($id);
+
+    $self->follow_link_ok( { text => 'Edit', n => '1' },
+        "Followed 'Edit' (block) link" );
+}
+
 1;

Modified: rtir/2.5/trunk/t/019-webui-block-fields.t
==============================================================================
--- rtir/2.5/trunk/t/019-webui-block-fields.t	(original)
+++ rtir/2.5/trunk/t/019-webui-block-fields.t	Wed Jun 17 05:17:24 2009
@@ -15,12 +15,3 @@
 
 $agent->content_unlike(qr{<option (?:value=.*)?>Use system default\(\)</option>}, "The option 'Use system default()' does not exist.");
 
-
-sub goto_edit_block {
-	my $agent = shift;
-	my $id = shift;
-	
-	$agent->display_ticket( $id);
-	
-	$agent->follow_link_ok({text => 'Edit', n => '1'}, "Followed 'Edit' (block) link");
-}


More information about the Rt-commit mailing list