Unit Tests
- Fixed syntax error in test. - Fixed tests that were broken, but did not detect that.
This commit is contained in:
@@ -55,7 +55,7 @@ ok ($? == 0, 'Exit status check');
|
|||||||
unlike ($output, qr/Some of your .taskrc variables differ/, 'Message is not shown when no non-default matches in pattern');
|
unlike ($output, qr/Some of your .taskrc variables differ/, 'Message is not shown when no non-default matches in pattern');
|
||||||
|
|
||||||
# Bug 1065 - CmdShow should not display the unrecognized message if no non-default in matched elements.
|
# Bug 1065 - CmdShow should not display the unrecognized message if no non-default in matched elements.
|
||||||
my $output = qx{../src/task rc:bug.rc show notrecog 2>&1};
|
$output = qx{../src/task rc:bug.rc show notrecog 2>&1};
|
||||||
ok ($? == 0, 'Exit status check');
|
ok ($? == 0, 'Exit status check');
|
||||||
like ($output, qr/Your .taskrc file contains these unrecognized variables:/, 'Message is shown when unrecognized matches in pattern');
|
like ($output, qr/Your .taskrc file contains these unrecognized variables:/, 'Message is shown when unrecognized matches in pattern');
|
||||||
|
|
||||||
|
|||||||
@@ -43,10 +43,10 @@ if (open my $fh, '>', 'bug.rc')
|
|||||||
|
|
||||||
qx{../src/task rc:bug.rc add test 2>&1};
|
qx{../src/task rc:bug.rc add test 2>&1};
|
||||||
|
|
||||||
my $output = qx{TASKRC=bug.rc ../src/task rc:bug.rc ids};
|
my $output = qx{TASKRC=bug.rc ../src/task rc:bug.rc ids 2>&1};
|
||||||
unlike ($output, qr/TASKRC/ms, 'The header does not appear with "ids"');
|
unlike ($output, qr/TASKRC/ms, 'The header does not appear with "ids"');
|
||||||
|
|
||||||
$output = qx{TASKRC=bug.rc ../src/task uuids};
|
$output = qx{TASKRC=bug.rc ../src/task uuids 2>&1};
|
||||||
unlike ($output, qr/TASKRC/ms, 'The header does not appear with "uuids"');
|
unlike ($output, qr/TASKRC/ms, 'The header does not appear with "uuids"');
|
||||||
|
|
||||||
$output = qx{TASKRC=bug.rc ../src/task _ids 2>&1};
|
$output = qx{TASKRC=bug.rc ../src/task _ids 2>&1};
|
||||||
|
|||||||
Reference in New Issue
Block a user