[Bps-public-commit] SD - A distributed issue tracker branch, master, updated. 4646320c12561521aac9c109c9d2d26b59888e2a
jesse
jesse at bestpractical.com
Tue Feb 10 16:21:49 EST 2009
The branch, master has been updated
via 4646320c12561521aac9c109c9d2d26b59888e2a (commit)
via f45fb8d00015e25c586633d1ded903b562869ebc (commit)
from 2cb5588600010c4e9ec0d6df406335b5a9b88790 (commit)
Summary of changes:
lib/App/SD/Server/Dispatcher.pm | 4 ++--
t/01-create.t | 2 +-
t/02-create-with-editor.t | 2 +-
t/03-update-ticket-with-editor.t | 2 +-
t/04-update-ticket-comment-with-editor.t | 2 +-
t/05-config-file-loading.t | 2 +-
t/06-ticket-show.t | 2 +-
t/07-sort-group.t | 2 +-
t/attachment-content.t | 2 +-
t/sd-attachments.t | 2 +-
t/sd-comments.t | 2 +-
t/sd-dispatcher.t | 3 +--
t/sd-hm/attachments.t | 2 +-
t/sd-hm/basics.t | 2 +-
t/sd-hm/comments.t | 2 +-
t/sd-hm/comments1.t | 2 +-
t/sd-hm/group.t | 2 +-
t/sd-hm/push-reporter-not-pro.t | 4 ++--
t/sd-hm/push-reporter-pro.t | 4 ++--
t/sd-hm/tag.t | 2 +-
t/sd-hm/update.t | 2 +-
t/sd-log.t | 2 +-
t/sd-rt/basic.t | 7 +++----
t/sd-rt/bogus-rt-data.t | 8 ++++----
t/sd-rt/pull-owner.t | 8 ++++----
t/sd-rt/pull-watchers.t | 8 ++++----
t/sd-rt/sd-rt-hm.t | 2 +-
t/sd-rt/sd-rt-permission.t | 6 +++---
t/sd-settings.t | 2 +-
t/sd-validation.t | 2 +-
t/server.t | 2 +-
31 files changed, 47 insertions(+), 49 deletions(-)
- Log -----------------------------------------------------------------
commit f45fb8d00015e25c586633d1ded903b562869ebc
Author: Jesse Vincent <jesse at bestpractical.com>
Date: Tue Feb 10 16:21:12 2009 -0500
Quiet down a redefinition warning
diff --git a/lib/App/SD/Server/Dispatcher.pm b/lib/App/SD/Server/Dispatcher.pm
index c9678cf..8c7a7ca 100644
--- a/lib/App/SD/Server/Dispatcher.pm
+++ b/lib/App/SD/Server/Dispatcher.pm
@@ -30,8 +30,8 @@ on qr'.' => sub {
$milestones->child( none => label => 'None', url => '/no_milestone');
my $components = $tickets->child( components => label => 'Components', url => '/components');
- my $items = $self->server->app_handle->setting( label => 'components' )->get();
- foreach my $item (@$items) {
+ my $component_list = $self->server->app_handle->setting( label => 'components' )->get();
+ foreach my $item (@$component_list) {
my $c= $components->child( $item => label => $item, url => '/component/'.$item);
#$c->child('all' => label => 'All', url => '/component/'.$item.'/all');
#$c->child('mine' => label => 'Mine', url => '/component/'.$item.'/mine');
commit 4646320c12561521aac9c109c9d2d26b59888e2a
Author: Jesse Vincent <jesse at bestpractical.com>
Date: Tue Feb 10 16:21:25 2009 -0500
Lots and lots of test complaint quieting
diff --git a/t/01-create.t b/t/01-create.t
index c3ab35a..265071e 100644
--- a/t/01-create.t
+++ b/t/01-create.t
@@ -12,7 +12,7 @@ no warnings 'once';
BEGIN {
require File::Temp;
- $ENV{'PROPHET_REPO'} = $ENV{'SD_REPO'} = File::Temp::tempdir( CLEANUP => 0 ) . '/_svb';
+ $ENV{'PROPHET_REPO'} = $ENV{'SD_REPO'} = File::Temp::tempdir( CLEANUP => 1 ) . '/_svb';
diag "export SD_REPO=".$ENV{'PROPHET_REPO'} ."\n";
}
diff --git a/t/02-create-with-editor.t b/t/02-create-with-editor.t
index e9b4351..243798e 100644
--- a/t/02-create-with-editor.t
+++ b/t/02-create-with-editor.t
@@ -6,7 +6,7 @@ use App::SD::Test;
BEGIN {
require File::Temp;
- $ENV{'PROPHET_REPO'} = $ENV{'SD_REPO'} = File::Temp::tempdir( CLEANUP => 0 ) . '/_svb';
+ $ENV{'PROPHET_REPO'} = $ENV{'SD_REPO'} = File::Temp::tempdir( CLEANUP => 1 ) . '/_svb';
diag 'export SD_REPO=' . $ENV{'PROPHET_REPO'} . "\n";
}
run_script( 'sd', [ 'init']);
diff --git a/t/03-update-ticket-with-editor.t b/t/03-update-ticket-with-editor.t
index ba2276b..c8136f3 100644
--- a/t/03-update-ticket-with-editor.t
+++ b/t/03-update-ticket-with-editor.t
@@ -6,7 +6,7 @@ use App::SD::Test;
BEGIN {
require File::Temp;
- $ENV{'PROPHET_REPO'} = $ENV{'SD_REPO'} = File::Temp::tempdir( CLEANUP => 0 ) . '/_svb';
+ $ENV{'PROPHET_REPO'} = $ENV{'SD_REPO'} = File::Temp::tempdir( CLEANUP => 1 ) . '/_svb';
diag 'export SD_REPO=' . $ENV{'PROPHET_REPO'} . "\n";
}
run_script( 'sd', [ 'init']);
diff --git a/t/04-update-ticket-comment-with-editor.t b/t/04-update-ticket-comment-with-editor.t
index 275e284..16cf518 100644
--- a/t/04-update-ticket-comment-with-editor.t
+++ b/t/04-update-ticket-comment-with-editor.t
@@ -6,7 +6,7 @@ use App::SD::Test;
BEGIN {
require File::Temp;
- $ENV{'PROPHET_REPO'} = $ENV{'SD_REPO'} = File::Temp::tempdir( CLEANUP => 0 ) . '/_svb';
+ $ENV{'PROPHET_REPO'} = $ENV{'SD_REPO'} = File::Temp::tempdir( CLEANUP => 1 ) . '/_svb';
diag 'export SD_REPO=' . $ENV{'PROPHET_REPO'} . "\n";
App::SD::Test->set_editor('ticket-comment-update-editor.pl');
}
diff --git a/t/05-config-file-loading.t b/t/05-config-file-loading.t
index a0b2034..9613cf7 100644
--- a/t/05-config-file-loading.t
+++ b/t/05-config-file-loading.t
@@ -12,7 +12,7 @@ no warnings 'once';
BEGIN {
require File::Temp;
- $ENV{'PROPHET_REPO'} = $ENV{'SD_REPO'} = $ENV{'HOME'} = File::Temp::tempdir( CLEANUP => 0 ) . '/_svb';
+ $ENV{'PROPHET_REPO'} = $ENV{'SD_REPO'} = $ENV{'HOME'} = File::Temp::tempdir( CLEANUP => 1 ) . '/_svb';
diag "export SD_REPO=".$ENV{'PROPHET_REPO'} ."\n";
diag "export HOME=".$ENV{'PROPHET_REPO'} ."\n";
delete $ENV{'PROPHET_APP_CONFIG'}; # clear this because Prophet::Test sets it
diff --git a/t/06-ticket-show.t b/t/06-ticket-show.t
index e603788..32cf619 100644
--- a/t/06-ticket-show.t
+++ b/t/06-ticket-show.t
@@ -12,7 +12,7 @@ no warnings 'once';
BEGIN {
require File::Temp;
- $ENV{'PROPHET_REPO'} = $ENV{'SD_REPO'} = File::Temp::tempdir( CLEANUP => 0 ) . '/_svb';
+ $ENV{'PROPHET_REPO'} = $ENV{'SD_REPO'} = File::Temp::tempdir( CLEANUP => 1 ) . '/_svb';
diag "export SD_REPO=".$ENV{'PROPHET_REPO'} ."\n";
}
diff --git a/t/07-sort-group.t b/t/07-sort-group.t
index bb4bc46..16a3842 100644
--- a/t/07-sort-group.t
+++ b/t/07-sort-group.t
@@ -11,7 +11,7 @@ no warnings 'once';
BEGIN {
require File::Temp;
- $ENV{'PROPHET_REPO'} = $ENV{'SD_REPO'} = File::Temp::tempdir( CLEANUP => 0 ) . '/_svb';
+ $ENV{'PROPHET_REPO'} = $ENV{'SD_REPO'} = File::Temp::tempdir( CLEANUP => 1 ) . '/_svb';
diag "export SD_REPO=".$ENV{'PROPHET_REPO'} ."\n";
}
diff --git a/t/attachment-content.t b/t/attachment-content.t
index 28a4250..9a7f85c 100644
--- a/t/attachment-content.t
+++ b/t/attachment-content.t
@@ -19,7 +19,7 @@ no warnings 'once';
BEGIN {
require File::Temp;
- $ENV{'PROPHET_REPO'} = $ENV{'SD_REPO'} = File::Temp::tempdir( CLEANUP => 0 ) . '/_svb';
+ $ENV{'PROPHET_REPO'} = $ENV{'SD_REPO'} = File::Temp::tempdir( CLEANUP => 1 ) . '/_svb';
diag "export SD_REPO=".$ENV{'PROPHET_REPO'} ."\n";
}
run_script( 'sd', [ 'init']);
diff --git a/t/sd-attachments.t b/t/sd-attachments.t
index e91b569..172ef45 100644
--- a/t/sd-attachments.t
+++ b/t/sd-attachments.t
@@ -8,7 +8,7 @@ no warnings 'once';
BEGIN {
require File::Temp;
- $ENV{'PROPHET_REPO'} = $ENV{'SD_REPO'} = File::Temp::tempdir( CLEANUP => 0 ) . '/_svb';
+ $ENV{'PROPHET_REPO'} = $ENV{'SD_REPO'} = File::Temp::tempdir( CLEANUP => 1 ) . '/_svb';
diag "export SD_REPO=".$ENV{'PROPHET_REPO'} ."\n";
}
diff --git a/t/sd-comments.t b/t/sd-comments.t
index 899c5cb..6693bb6 100644
--- a/t/sd-comments.t
+++ b/t/sd-comments.t
@@ -9,7 +9,7 @@ no warnings 'once';
BEGIN {
require File::Temp;
$ENV{'PROPHET_REPO'} = $ENV{'SD_REPO'}
- = File::Temp::tempdir( CLEANUP => 0 ) . '/_svb';
+ = File::Temp::tempdir( CLEANUP => 1 ) . '/_svb';
diag $ENV{'PROPHET_REPO'};
}
diff --git a/t/sd-dispatcher.t b/t/sd-dispatcher.t
index f37fe3f..106a48b 100644
--- a/t/sd-dispatcher.t
+++ b/t/sd-dispatcher.t
@@ -8,8 +8,7 @@ no warnings 'once';
BEGIN {
require File::Temp;
- $ENV{'PROPHET_REPO'} = $ENV{'SD_REPO'} = File::Temp::tempdir( CLEANUP => 0 ) . '/_svb';
- warn $ENV{'PROPHET_REPO'};
+ $ENV{'PROPHET_REPO'} = $ENV{'SD_REPO'} = File::Temp::tempdir( CLEANUP => 1 ) . '/_svb';
}
# tests for pseudo-commands that are only sugar in the dispatcher
diff --git a/t/sd-hm/attachments.t b/t/sd-hm/attachments.t
index d11c005..7b5c146 100644
--- a/t/sd-hm/attachments.t
+++ b/t/sd-hm/attachments.t
@@ -9,7 +9,7 @@ BEGIN {
if ( $ENV{'JIFTY_APP_ROOT'} ) {
plan tests => 10;
require File::Temp;
- $ENV{'PROPHET_REPO'} = $ENV{'SD_REPO'} = File::Temp::tempdir( CLEANUP => 0 ) . '/_svb';
+ $ENV{'PROPHET_REPO'} = $ENV{'SD_REPO'} = File::Temp::tempdir( CLEANUP => 1 ) . '/_svb';
diag $ENV{'PROPHET_REPO'};
eval "use Jifty";
push @INC, File::Spec->catdir( Jifty::Util->app_root, "lib" );
diff --git a/t/sd-hm/basics.t b/t/sd-hm/basics.t
index 4c395f2..f91c26c 100644
--- a/t/sd-hm/basics.t
+++ b/t/sd-hm/basics.t
@@ -9,7 +9,7 @@ BEGIN {
if ( $ENV{'JIFTY_APP_ROOT'} ) {
plan tests => 9;
require File::Temp;
- $ENV{'PROPHET_REPO'} = $ENV{'SD_REPO'} = File::Temp::tempdir( CLEANUP => 0 ) . '/_svb';
+ $ENV{'PROPHET_REPO'} = $ENV{'SD_REPO'} = File::Temp::tempdir( CLEANUP => 1 ) . '/_svb';
diag $ENV{'PROPHET_REPO'};
eval "use Jifty";
push @INC, File::Spec->catdir( Jifty::Util->app_root, "lib" );
diff --git a/t/sd-hm/comments.t b/t/sd-hm/comments.t
index 07b1561..c74f2d8 100644
--- a/t/sd-hm/comments.t
+++ b/t/sd-hm/comments.t
@@ -9,7 +9,7 @@ BEGIN {
if ( $ENV{'JIFTY_APP_ROOT'} ) {
plan tests => 8;
require File::Temp;
- $ENV{'PROPHET_REPO'} = $ENV{'SD_REPO'} = File::Temp::tempdir( CLEANUP => 0 ) . '/_svb';
+ $ENV{'PROPHET_REPO'} = $ENV{'SD_REPO'} = File::Temp::tempdir( CLEANUP => 1 ) . '/_svb';
diag $ENV{'PROPHET_REPO'};
eval "use Jifty";
push @INC, File::Spec->catdir( Jifty::Util->app_root, "lib" );
diff --git a/t/sd-hm/comments1.t b/t/sd-hm/comments1.t
index f4627b3..786f40a 100644
--- a/t/sd-hm/comments1.t
+++ b/t/sd-hm/comments1.t
@@ -9,7 +9,7 @@ BEGIN {
if ( $ENV{'JIFTY_APP_ROOT'} ) {
plan tests => 10;
require File::Temp;
- $ENV{'PROPHET_REPO'} = $ENV{'SD_REPO'} = File::Temp::tempdir( CLEANUP => 0 ) . '/_svb';
+ $ENV{'PROPHET_REPO'} = $ENV{'SD_REPO'} = File::Temp::tempdir( CLEANUP => 1 ) . '/_svb';
diag $ENV{'PROPHET_REPO'};
eval "use Jifty";
push @INC, File::Spec->catdir( Jifty::Util->app_root, "lib" );
diff --git a/t/sd-hm/group.t b/t/sd-hm/group.t
index eccc85e..f6a28f1 100644
--- a/t/sd-hm/group.t
+++ b/t/sd-hm/group.t
@@ -10,7 +10,7 @@ BEGIN {
if ( $ENV{'JIFTY_APP_ROOT'} ) {
plan tests => 18;
require File::Temp;
- $ENV{'PROPHET_REPO'} = $ENV{'SD_REPO'} = File::Temp::tempdir( CLEANUP => 0 ) . '/_svb';
+ $ENV{'PROPHET_REPO'} = $ENV{'SD_REPO'} = File::Temp::tempdir( CLEANUP => 1 ) . '/_svb';
diag $ENV{'PROPHET_REPO'};
eval "use Jifty";
push @INC, File::Spec->catdir( Jifty::Util->app_root, "lib" );
diff --git a/t/sd-hm/push-reporter-not-pro.t b/t/sd-hm/push-reporter-not-pro.t
index 22d6baa..456a653 100644
--- a/t/sd-hm/push-reporter-not-pro.t
+++ b/t/sd-hm/push-reporter-not-pro.t
@@ -8,7 +8,7 @@ BEGIN {
if ( $ENV{'JIFTY_APP_ROOT'} ) {
plan tests => 29;
require File::Temp;
- $ENV{'PROPHET_REPO'} = $ENV{'SD_REPO'} = File::Temp::tempdir( CLEANUP => 0 ) . '/_svb';
+ $ENV{'PROPHET_REPO'} = $ENV{'SD_REPO'} = File::Temp::tempdir( CLEANUP => 1 ) . '/_svb';
diag $ENV{'PROPHET_REPO'};
eval "use Jifty";
push @INC, File::Spec->catdir( Jifty::Util->app_root, "lib" );
@@ -75,7 +75,7 @@ diag("non pro have no right to change requestor");
diag("only one requestor");
{
flush_sd();
- my ($luid, $uuid) = create_ticket_ok(qw(--summary YATTA --status new --reporter onlooker at example.com,test at localhost));
+ my ($luid, $uuid) = create_ticket_ok(qw(--summary YATTA --status new --reporter), 'onlooker at example.com,test at localhost');
my ($ret, $out, $err) = run_script( 'sd', ['push', '--to', $sd_hm_url] );
like $err, qr/A ticket has more than one requestor when HM supports only one/, 'warning issued';
diff --git a/t/sd-hm/push-reporter-pro.t b/t/sd-hm/push-reporter-pro.t
index c21b6a3..4f4e05e 100644
--- a/t/sd-hm/push-reporter-pro.t
+++ b/t/sd-hm/push-reporter-pro.t
@@ -8,7 +8,7 @@ BEGIN {
if ( $ENV{'JIFTY_APP_ROOT'} ) {
plan tests => 23;
require File::Temp;
- $ENV{'PROPHET_REPO'} = $ENV{'SD_REPO'} = File::Temp::tempdir( CLEANUP => 0 ) . '/_svb';
+ $ENV{'PROPHET_REPO'} = $ENV{'SD_REPO'} = File::Temp::tempdir( CLEANUP => 1 ) . '/_svb';
diag $ENV{'PROPHET_REPO'};
eval "use Jifty";
push @INC, File::Spec->catdir( Jifty::Util->app_root, "lib" );
@@ -73,7 +73,7 @@ diag("non pro have no right to change requestor");
diag("only one requestor");
{
flush_sd();
- my ($luid, $uuid) = create_ticket_ok(qw(--summary YATTA --status new --reporter onlooker at example.com,test at localhost));
+ my ($luid, $uuid) = create_ticket_ok(qw(--summary YATTA --status new --reporter) ,'onlooker at example.com,test at localhost');
my ($ret, $out, $err) = run_script( 'sd', ['push', '--to', $sd_hm_url] );
like $err, qr/A ticket has more than one requestor when HM supports only one/, 'warning issued';
diff --git a/t/sd-hm/tag.t b/t/sd-hm/tag.t
index e19dd0b..fb0dee1 100644
--- a/t/sd-hm/tag.t
+++ b/t/sd-hm/tag.t
@@ -9,7 +9,7 @@ BEGIN {
if ( $ENV{'JIFTY_APP_ROOT'} ) {
plan tests => 12;
require File::Temp;
- $ENV{'PROPHET_REPO'} = $ENV{'SD_REPO'} = File::Temp::tempdir( CLEANUP => 0 ) . '/_svb';
+ $ENV{'PROPHET_REPO'} = $ENV{'SD_REPO'} = File::Temp::tempdir( CLEANUP => 1 ) . '/_svb';
diag $ENV{'PROPHET_REPO'};
eval "use Jifty";
push @INC, File::Spec->catdir( Jifty::Util->app_root, "lib" );
diff --git a/t/sd-hm/update.t b/t/sd-hm/update.t
index 71521b7..55badd9 100644
--- a/t/sd-hm/update.t
+++ b/t/sd-hm/update.t
@@ -9,7 +9,7 @@ BEGIN {
if ( $ENV{'JIFTY_APP_ROOT'} ) {
plan tests => 7;
require File::Temp;
- $ENV{'PROPHET_REPO'} = $ENV{'SD_REPO'} = File::Temp::tempdir( CLEANUP => 0 ) . '/_svb';
+ $ENV{'PROPHET_REPO'} = $ENV{'SD_REPO'} = File::Temp::tempdir( CLEANUP => 1 ) . '/_svb';
diag $ENV{'PROPHET_REPO'};
eval "use Jifty";
push @INC, File::Spec->catdir( Jifty::Util->app_root, "lib" );
diff --git a/t/sd-log.t b/t/sd-log.t
index 2b294e8..600d8fe 100644
--- a/t/sd-log.t
+++ b/t/sd-log.t
@@ -12,7 +12,7 @@ no warnings 'once';
BEGIN {
require File::Temp;
$ENV{'PROPHET_REPO'} = $ENV{'SD_REPO'}
- = File::Temp::tempdir( CLEANUP => 0 ) . '/_svb';
+ = File::Temp::tempdir( CLEANUP => 1 ) . '/_svb';
diag $ENV{'PROPHET_REPO'};
}
diff --git a/t/sd-rt/basic.t b/t/sd-rt/basic.t
index 9d02912..c9f716c 100644
--- a/t/sd-rt/basic.t
+++ b/t/sd-rt/basic.t
@@ -5,7 +5,7 @@
# RT_DBA_USER=root RT_DBA_PASSWORD= prove -lv -I/Users/clkao/work/bps/rt-3.7/lib t/sd-rt.t
use strict;
-use Test::More;
+use Prophet::Test;
use Path::Class;
BEGIN {
@@ -15,18 +15,17 @@ BEGIN {
}
}
-use Prophet::Test tests => 43;
+plan tests => 43;
use App::SD::Test;
no warnings 'once';
RT::Handle->InsertData( $RT::EtcPath . '/initialdata' );
-use Test::More;
BEGIN {
require File::Temp;
$ENV{'PROPHET_REPO'} = $ENV{'SD_REPO'}
- = File::Temp::tempdir( CLEANUP => 0 ) . '/_svb';
+ = File::Temp::tempdir( CLEANUP => 1 ) . '/_svb';
diag "export SD_REPO=" . $ENV{'PROPHET_REPO'} . "\n";
}
diff --git a/t/sd-rt/bogus-rt-data.t b/t/sd-rt/bogus-rt-data.t
index 3859653..568f487 100644
--- a/t/sd-rt/bogus-rt-data.t
+++ b/t/sd-rt/bogus-rt-data.t
@@ -5,7 +5,7 @@
# RT_DBA_USER=root RT_DBA_PASSWORD= prove -lv -I/Users/clkao/work/bps/rt-3.7/lib t/sd-rt.t
use strict;
-use Test::More;
+use Prophet::Test;
use Path::Class;
BEGIN {
@@ -15,18 +15,18 @@ BEGIN {
}
}
-use Prophet::Test tests => 6;
+plan tests => 6;
use App::SD::Test;
no warnings 'once';
RT::Handle->InsertData( $RT::EtcPath . '/initialdata' );
-use Test::More;
+use Prophet::Test;
BEGIN {
require File::Temp;
$ENV{'PROPHET_REPO'} = $ENV{'SD_REPO'}
- = File::Temp::tempdir( CLEANUP => 0 ) . '/_svb';
+ = File::Temp::tempdir( CLEANUP => 1 ) . '/_svb';
diag "export SD_REPO=" . $ENV{'PROPHET_REPO'} . "\n";
}
diff --git a/t/sd-rt/pull-owner.t b/t/sd-rt/pull-owner.t
index 28afa64..7289908 100644
--- a/t/sd-rt/pull-owner.t
+++ b/t/sd-rt/pull-owner.t
@@ -4,7 +4,7 @@
use strict;
use warnings;
-use Test::More;
+use Prophet::Test;
use Path::Class;
use File::Path qw(rmtree);
@@ -15,18 +15,18 @@ BEGIN {
}
}
-use Prophet::Test tests => 26;
+plan tests => 26;
use App::SD::Test;
no warnings 'once';
RT::Handle->InsertData( $RT::EtcPath . '/initialdata' );
-use Test::More;
+use Prophet::Test;
BEGIN {
require File::Temp;
$ENV{'PROPHET_REPO'} = $ENV{'SD_REPO'}
- = File::Temp::tempdir( CLEANUP => 0 ) . '/_svb';
+ = File::Temp::tempdir( CLEANUP => 1 ) . '/_svb';
diag "export SD_REPO=" . $ENV{'PROPHET_REPO'} . "\n";
}
diff --git a/t/sd-rt/pull-watchers.t b/t/sd-rt/pull-watchers.t
index e13b480..a86e458 100644
--- a/t/sd-rt/pull-watchers.t
+++ b/t/sd-rt/pull-watchers.t
@@ -6,7 +6,7 @@
use strict;
use warnings;
-use Test::More;
+use Prophet::Test;
use Path::Class;
use File::Path qw(rmtree);
@@ -17,18 +17,18 @@ BEGIN {
}
}
-use Prophet::Test tests => 91;
+plan tests => 91;
use App::SD::Test;
no warnings 'once';
RT::Handle->InsertData( $RT::EtcPath . '/initialdata' );
-use Test::More;
+use Prophet::Test;
BEGIN {
require File::Temp;
$ENV{'PROPHET_REPO'} = $ENV{'SD_REPO'}
- = File::Temp::tempdir( CLEANUP => 0 ) . '/_svb';
+ = File::Temp::tempdir( CLEANUP => 1 ) . '/_svb';
diag "export SD_REPO=" . $ENV{'PROPHET_REPO'} . "\n";
}
diff --git a/t/sd-rt/sd-rt-hm.t b/t/sd-rt/sd-rt-hm.t
index 257a6ec..512f77c 100644
--- a/t/sd-rt/sd-rt-hm.t
+++ b/t/sd-rt/sd-rt-hm.t
@@ -153,7 +153,7 @@ __END__
-use Test::More;
+use Prophet::Test;
my ($url, $m) = RT::Test->started_ok;
diff --git a/t/sd-rt/sd-rt-permission.t b/t/sd-rt/sd-rt-permission.t
index 3f193a5..8a86d53 100644
--- a/t/sd-rt/sd-rt-permission.t
+++ b/t/sd-rt/sd-rt-permission.t
@@ -6,7 +6,7 @@ use strict;
use warnings;
no warnings 'once';
-use Test::More;
+use Prophet::Test;
BEGIN {
unless (eval 'use RT::Test; 1') {
@@ -17,12 +17,12 @@ BEGIN {
BEGIN {
require File::Temp;
- $ENV{'PROPHET_REPO'} = $ENV{'SD_REPO'} = File::Temp::tempdir( CLEANUP => 0 ) . '/_svb';
+ $ENV{'PROPHET_REPO'} = $ENV{'SD_REPO'} = File::Temp::tempdir( CLEANUP => 1 ) . '/_svb';
diag "export SD_REPO=".$ENV{'PROPHET_REPO'} ."\n";
}
-use Prophet::Test tests => 23;
+plan tests => 23;
use App::SD::Test;
use RT::Client::REST;
use RT::Client::REST::Ticket;
diff --git a/t/sd-settings.t b/t/sd-settings.t
index 0d5f73b..ce344da 100644
--- a/t/sd-settings.t
+++ b/t/sd-settings.t
@@ -14,7 +14,7 @@ no warnings 'once';
BEGIN {
require File::Temp;
$ENV{'PROPHET_REPO'} = $ENV{'SD_REPO'}
- = File::Temp::tempdir( CLEANUP => 0 ) . '/_svb';
+ = File::Temp::tempdir( CLEANUP => 1 ) . '/_svb';
diag $ENV{'PROPHET_REPO'};
}
diff --git a/t/sd-validation.t b/t/sd-validation.t
index 9920c68..8d505bb 100644
--- a/t/sd-validation.t
+++ b/t/sd-validation.t
@@ -8,7 +8,7 @@ no warnings 'once';
BEGIN {
require File::Temp;
- $ENV{'PROPHET_REPO'} = $ENV{'SD_REPO'} = File::Temp::tempdir( CLEANUP => 0 ) . '/_svb';
+ $ENV{'PROPHET_REPO'} = $ENV{'SD_REPO'} = File::Temp::tempdir( CLEANUP => 1 ) . '/_svb';
warn $ENV{'PROPHET_REPO'};
}
diff --git a/t/server.t b/t/server.t
index eda7cd9..f70c9da 100644
--- a/t/server.t
+++ b/t/server.t
@@ -5,7 +5,7 @@ use Test::HTTP::Server::Simple;
BEGIN {
use File::Temp qw(tempdir);
- $ENV{'PROPHET_REPO'} = tempdir( CLEANUP => 0 ) . '/repo-' . $$;
+ $ENV{'PROPHET_REPO'} = tempdir( CLEANUP => 1 ) . '/repo-' . $$;
}
-----------------------------------------------------------------------
More information about the Bps-public-commit
mailing list