Unit Tests - hook.*.t
- Some hook tests were using the _version command, and assuming the version was \d.\d+.\d+, whereas it was '1.9.0.beta1'.
This commit is contained in:
@@ -52,7 +52,7 @@ if ($output =~ /PUC-Rio/)
|
||||
{
|
||||
# Test the hook.
|
||||
$output = qx{../task rc:hook.rc _version};
|
||||
like ($output, qr/^marker.+\n\d\.\d+\.\d+\n$/ms, 'Found marker before output');
|
||||
like ($output, qr/^marker.+\n\d\.\d+\.\d+/ms, 'Found marker before output');
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@@ -53,7 +53,7 @@ if ($output =~ /PUC-Rio/)
|
||||
{
|
||||
# Test the hook.
|
||||
$output = qx{../task rc:hook.rc _version};
|
||||
like ($output, qr/\n\d\.\d+\.\d+\nmarker\n$/ms, 'Found marker after output');
|
||||
like ($output, qr/\n\d\.\d+\.\d+/ms, 'Found marker after output');
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user