blob: eab9433cda312325ed988c905e11e5fd962fd33a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
#!/usr/bin/perl -w
use strict;
use warnings;
use Test::Deep;
use File::Spec;
use Test::More tests => 1;
use RT::Test ();
BEGIN {
my $shredder_utils = RT::Test::get_relocatable_file('utils.pl',
File::Spec->curdir());
require $shredder_utils;
}
init_db();
create_savepoint('clean'); # backup of the clean RT DB
my $shredder = shredder_new(); # new shredder object
# ....
# create and wipe RT objects
#
cmp_deeply( dump_current_and_savepoint('clean'), "current DB equal to savepoint");
|