|
@@ -12,17 +12,17 @@ require_ok( 'SugarTrail::Repo' );
|
12
|
12
|
my $repo = SugarTrail::Repo->new(root => './t/data/strepo', vcs => 'git');
|
13
|
13
|
ok($repo, "repo is true");
|
14
|
14
|
|
15
|
|
-my $stm = $repo->load_stm(stm=>'/release/rc.stm');
|
16
|
|
-ok($stm, "master is true");
|
|
15
|
+my $master = $repo->load_master(source=>'/release/rc.stm');
|
|
16
|
+ok($master, "master is true");
|
17
|
17
|
|
18
|
|
-my ($hc,$bc) = $stm->parse();
|
|
18
|
+my ($hc,$bc) = $master->parse();
|
19
|
19
|
is($hc, 6, "parse() reported 6 headers");
|
20
|
20
|
is($bc, 13, "parse() reported 13 non-header lines");
|
21
|
21
|
|
22
|
|
-my $sts = $stm->generate_slave({ proto => "imap", os => "wxx" });
|
23
|
|
-ok($sts, "slave is true");
|
|
22
|
+my $slave = $master->generate_slave({ proto => "imap", os => "wxx" });
|
|
23
|
+ok($slave, "slave is true");
|
24
|
24
|
|
25
|
|
-&helper::dmup(master=>$stm);
|
26
|
|
-&helper::dmup(slave=>$sts);
|
|
25
|
+&helper::dmup(master=>$master);
|
|
26
|
+&helper::dmup(slave=>$slave);
|
27
|
27
|
|
28
|
28
|
done_testing();
|