[Rt-commit] rt branch, 4.0/load-modules-later-in-tests, created. rt-4.0.7-62-g858a7a7

Ruslan Zakirov ruz at bestpractical.com
Wed Oct 10 18:49:06 EDT 2012


The branch, 4.0/load-modules-later-in-tests has been created
        at  858a7a77144a5c09f0d5db3c2cafafcad742484b (commit)

- Log -----------------------------------------------------------------
commit 858a7a77144a5c09f0d5db3c2cafafcad742484b
Author: Ruslan Zakirov <ruz at bestpractical.com>
Date:   Thu Oct 11 02:46:08 2012 +0400

    load module after importing everything
    
    otherwise an extension can not override the file completly

diff --git a/lib/RT/Test/GnuPG.pm b/lib/RT/Test/GnuPG.pm
index 6cebb77..f6d84c2 100644
--- a/lib/RT/Test/GnuPG.pm
+++ b/lib/RT/Test/GnuPG.pm
@@ -68,8 +68,8 @@ sub import {
     $t->plan( skip_all => 'gpg executable is required.' )
       unless RT::Test->find_executable('gpg');
 
-    require RT::Crypt::GnuPG;
     $class->SUPER::import(%args);
+    require RT::Crypt::GnuPG;
 
     RT::Test::diag "GnuPG --homedir " . RT->Config->Get('GnuPGOptions')->{'homedir'};
 

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


More information about the Rt-commit mailing list