[Rt-commit] [rtir] 20/30: Fix uses of block with countermeasure in t/searches/menu.t
Shawn Moore
shawn at bestpractical.com
Fri May 13 19:53:12 EDT 2016
This is an automated email from the git hooks/post-receive script.
shawn pushed a commit to branch 3.4/countermeasures
in repository rtir.
commit ce554cf0c4965fad99ae741474c08cf95b55f5dd
Author: Shawn M Moore <shawn at bestpractical.com>
Date: Thu Feb 25 00:39:50 2016 +0000
Fix uses of block with countermeasure in t/searches/menu.t
---
t/searches/menu.t | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/t/searches/menu.t b/t/searches/menu.t
index b2e0ef3..8605553 100644
--- a/t/searches/menu.t
+++ b/t/searches/menu.t
@@ -9,7 +9,7 @@ my $m = default_agent();
my %ticket;
for my $subject (qw/foo bar baz/) {
- for my $type ( 'incident', 'ir', 'investigation', 'block' ) {
+ for my $type ( 'incident', 'ir', 'investigation', 'countermeasure' ) {
my $create_sub = "create_$type";
push @{ $ticket{$type} },
$m->$create_sub(
@@ -22,7 +22,7 @@ for my $subject (qw/foo bar baz/) {
}
# Merge
-for my $type ( 'incident', 'ir', 'investigation', 'block' ) {
+for my $type ( 'incident', 'ir', 'investigation', 'countermeasure' ) {
$m->display_ticket( $ticket{$type}[0] );
$m->follow_link_ok( { text => 'Merge' } );
$m->title_like(qr/Merge .+ #$ticket{$type}[0]:/);
@@ -148,7 +148,7 @@ for my $type ( 'incident', 'ir', 'investigation', 'block' ) {
ok( $m->find_link( url_regex => qr{/RTIR/Display.html\?id=$ticket{ir}[0]$} ),
"found link to incident report $ticket{ir}[0]" );
- for my $type (qw/investigation block/) {
+ for my $type (qw/investigation countermeasure/) {
ok( !$m->find_link( url_regex => qr{/RTIR/Display.html\?id=$ticket{$type}[0]$} ),
"didn't find link to $type $ticket{$type}[0]" );
}
@@ -176,7 +176,7 @@ for my $type ( 'incident', 'ir', 'investigation', 'block' ) {
"didn't find link to incident report $ticket{ir}[0]"
);
- for my $type (qw/investigation block/) {
+ for my $type (qw/investigation countermeasure/) {
ok( !$m->find_link( url_regex => qr{/RTIR/Display.html\?id=$ticket{$type}[0]$} ),
"didn't find link to $type $ticket{$type}[0]" );
}
@@ -188,7 +188,7 @@ for my $type ( 'incident', 'ir', 'investigation', 'block' ) {
$m->follow_link_ok( { text => 'Reply to All' } );
$m->title_like(qr/#$ticket{incident}[0]: Reply to All/);
- for my $type (qw/ir investigation block/) {
+ for my $type (qw/ir investigation countermeasure/) {
ok( $m->find_link( url_regex => qr{/RTIR/Display.html\?id=$ticket{$type}[0]$} ),
"found link to $type $ticket{$type}[0]" );
}
@@ -200,7 +200,7 @@ for my $type ( 'incident', 'ir', 'investigation', 'block' ) {
is( $checkbox->value, $ticket{investigation}[0], '$ticket{investigation}[0] is checked' );
($checkbox) = $m->find_all_inputs( name => 'SelectedCountermeasures' );
- is( $checkbox->value, $ticket{block}[0], '$ticket{block}[0] is checked' );
+ is( $checkbox->value, $ticket{countermeasure}[0], '$ticket{countermeasure}[0] is checked' );
$m->follow_link_ok( { text => "Edit Search", n => 2 } );
$m->form_name('BuildQuery');
@@ -221,7 +221,7 @@ for my $type ( 'incident', 'ir', 'investigation', 'block' ) {
"didn't find link to incident report $ticket{ir}[0]"
);
- for my $type (qw/investigation block/) {
+ for my $type (qw/investigation countermeasure/) {
ok( $m->find_link( url_regex => qr{/RTIR/Display.html\?id=$ticket{$type}[0]$} ),
"found link to $type $ticket{$type}[0]" );
}
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the rt-commit
mailing list