mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-31 17:03:30 +02:00
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:
parent
5567b04277
commit
58910b07ef
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue