Fix and test resource_diff().

This commit is contained in:
Daniel Nichter
2013-03-27 11:12:38 -06:00
parent 13e9b5d7c7
commit afa6533f43
3 changed files with 26 additions and 5 deletions

View File

@@ -45,7 +45,18 @@ $y->options->{spool} = '/var/lib/spool';
is(
resource_diff($x, $y),
1,
"Diff"
"Big diff in 1 attrib"
);
# Restore this...
$y->options->{spool} = '/var/spool';
# Change this...
$y->options->{ts} = '101';
is(
resource_diff($x, $y),
1,
"Small diff in 1 attrib"
);
# #############################################################################