[Rt-commit] r10589 - rt/branches/3.999-DANGEROUS/lib/RT
ruz at bestpractical.com
ruz at bestpractical.com
Wed Jan 30 12:31:10 EST 2008
Author: ruz
Date: Wed Jan 30 12:31:10 2008
New Revision: 10589
Modified:
rt/branches/3.999-DANGEROUS/lib/RT/Test.pm
Log:
* use setup instead of import
Modified: rt/branches/3.999-DANGEROUS/lib/RT/Test.pm
==============================================================================
--- rt/branches/3.999-DANGEROUS/lib/RT/Test.pm (original)
+++ rt/branches/3.999-DANGEROUS/lib/RT/Test.pm Wed Jan 30 12:31:10 2008
@@ -12,13 +12,15 @@
my @server;
-sub import {
- my $class = shift;
- my %args = @_;
- $class->SUPER::import(@_);
- $class->_setup_config(%args);
+sub setup {
+ my $self = shift;
+ my $args = shift;
+
+ # Make sure to call the super-class version
+ $self->SUPER::setup($args);
+
+ $self->_setup_config( @$args );
RT::init_system_objects();
- $class->load_test_configs;
}
sub _setup_config {
@@ -60,7 +62,6 @@
Jifty->log->warn($existing_server);
return ( $existing_server, RT::Test::Web->new );
}
- Jifty->log->error("bla");
my $server = Jifty::Test->make_server;
$RT::Test::server_url = $server->started_ok . "/";
More information about the Rt-commit
mailing list