[Rt-commit] rt branch, 3.9-trunk, updated. rt-3.9.4-90-g5c288c7
Shawn Moore
sartak at bestpractical.com
Fri Oct 1 18:52:54 EDT 2010
The branch, 3.9-trunk has been updated
via 5c288c76a99cf548b74ba78db239924e6519360a (commit)
from fb637bc2f7a595400cf3202acae063975b3a5919 (commit)
Summary of changes:
t/approval/admincc.t | 14 +++++++++-----
1 files changed, 9 insertions(+), 5 deletions(-)
- Log -----------------------------------------------------------------
commit 5c288c76a99cf548b74ba78db239924e6519360a
Author: Shawn M Moore <sartak at bestpractical.com>
Date: Fri Oct 1 18:55:40 2010 -0400
Fix test to not demand ordering of approvals
diff --git a/t/approval/admincc.t b/t/approval/admincc.t
index 7915b6a..614ecc6 100644
--- a/t/approval/admincc.t
+++ b/t/approval/admincc.t
@@ -9,7 +9,7 @@ BEGIN {
use RT;
-use RT::Test tests => 58;
+use RT::Test tests => 60;
use RT::Test::Email;
RT->Config->Set( LogToScreen => 'debug' );
@@ -236,12 +236,16 @@ $m->get_ok( $approval_link );
$m_coo->get_ok( $approval_link );
$m_ceo->get_ok( $approval_link );
-$m->content_like( qr/first approval.*second approval/s, 'cto: see both approvals' );
-$m_coo->content_like( qr/first approval.*second approval/s, 'coo: see both approvals' );
-$m_ceo->content_like( qr/first approval.*second approval/s, 'ceo: see both approvals' );
+$m->content_contains('first approval', 'cto: see both approvals' );
+$m->content_contains('second approval', 'cto: see both approvals' );
+
+$m_coo->content_contains('first approval', 'coo: see both approvals');
+$m_coo->content_contains('second approval', 'coo: see both approvals');
+
+$m_ceo->content_contains('first approval', 'ceo: see both approvals');
+$m_ceo->content_contains('second approval', 'ceo: see both approvals');
# now let's approve the first one via cto
-$m->content_like( qr/first approval.*second approval/s, 'cto can see both approvals' );
$m->submit_form(
form_number => 3,
fields => { 'Approval-' . $first_approval->id . '-Action' => 'approve', },
-----------------------------------------------------------------------
More information about the Rt-commit
mailing list