[Rt-commit] rt branch, 4.0-trunk, updated. rt-4.0.8-153-g9e81ab6
Alex Vandiver
alexmv at bestpractical.com
Fri Nov 9 12:50:10 EST 2012
The branch, 4.0-trunk has been updated
via 9e81ab62235201213e9357b7390d1766f4121e68 (commit)
from d2f4e770c67baabbed167d78f95500cffd8817a4 (commit)
Summary of changes:
t/web/admin_queue_lifecycle.t | 12 +++++++-----
1 file changed, 7 insertions(+), 5 deletions(-)
- Log -----------------------------------------------------------------
commit 9e81ab62235201213e9357b7390d1766f4121e68
Author: Alex Vandiver <alexmv at bestpractical.com>
Date: Fri Nov 9 12:43:43 2012 -0500
Switch to using RT->Config->Set so tests pass under Apache
RT->Config->Set is overridden in testing to write out an updated
RT_SiteConfig.pm every time a variable is changed. This is necessary
when the server runs in a separate process, thus changing the setting
in-memory is insufficient.
diff --git a/t/web/admin_queue_lifecycle.t b/t/web/admin_queue_lifecycle.t
index cb18d11..295e9ea 100644
--- a/t/web/admin_queue_lifecycle.t
+++ b/t/web/admin_queue_lifecycle.t
@@ -4,11 +4,13 @@ use warnings;
use RT::Test tests => 13;
my $lifecycles = RT->Config->Get('Lifecycles');
-$lifecycles->{foo} = {
- initial => ['initial'],
- active => ['open'],
- inactive => ['resolved'],
-};
+RT->Config->Set( Lifecycles => %{$lifecycles},
+ foo => {
+ initial => ['initial'],
+ active => ['open'],
+ inactive => ['resolved'],
+ }
+);
RT::Lifecycle->FillCache();
-----------------------------------------------------------------------
More information about the Rt-commit
mailing list