[Rt-commit] rt branch, 4.0/use-rt-test-first, created. rt-4.0.0rc4-41-g674c98b
Ruslan Zakirov
ruz at bestpractical.com
Tue Feb 8 20:43:05 EST 2011
The branch, 4.0/use-rt-test-first has been created
at 674c98bf2ed28b90e5fb1bf9f1a31091ef1d816c (commit)
- Log -----------------------------------------------------------------
commit 674c98bf2ed28b90e5fb1bf9f1a31091ef1d816c
Author: Ruslan Zakirov <ruz at bestpractical.com>
Date: Wed Feb 9 04:40:22 2011 +0300
MUST NOT load any of RT::** classes before RT::Test
RT::** may load site config and that would be a production one
in this particular case we even don't need to load any
of those modules as RT::Test loads them for us
diff --git a/t/api/savedsearch.t b/t/api/savedsearch.t
index d479d74..0aa67ee 100644
--- a/t/api/savedsearch.t
+++ b/t/api/savedsearch.t
@@ -1,13 +1,9 @@
use strict;
use warnings;
BEGIN { $ENV{'LANG'} = 'C' }
-use RT;
-use RT::User;
-use RT::Group;
-use RT::Ticket;
-use RT::Queue;
use RT::Test tests => 27;
+
use_ok('RT::SavedSearch');
use_ok('RT::SavedSearches');
-----------------------------------------------------------------------
More information about the Rt-commit
mailing list