Unit Test
- Fix the purpose of the test for bug #1006: checking that completion is active when necessary.
This commit is contained in:
committed by
Paul Beckingham
parent
19b01131ce
commit
573e0b2a65
@@ -43,13 +43,15 @@ if (open my $fh, '>', 'bug.rc')
|
|||||||
# This is because DOM elements are checked before standard words when strings
|
# This is because DOM elements are checked before standard words when strings
|
||||||
# are tokenized.
|
# are tokenized.
|
||||||
|
|
||||||
|
# Check that the completion is inactive in task descriptions
|
||||||
qx{../src/task rc:bug.rc add des 2>&1};
|
qx{../src/task rc:bug.rc add des 2>&1};
|
||||||
qx{../src/task rc:bug.rc 1 annotate des 2>&1};
|
qx{../src/task rc:bug.rc 1 annotate des 2>&1};
|
||||||
my $output = qx{../src/task rc:bug.rc 1 info 2>&1};
|
my $output = qx{../src/task rc:bug.rc 1 info 2>&1};
|
||||||
unlike ($output, qr/description/ms, 'Attribute not completed in description');
|
unlike ($output, qr/description/ms, 'Attribute not completed in description');
|
||||||
|
|
||||||
$output = qx{../src/task test rc:bug.rc rc.report.test.columns:description rc.report.test.labels:__ 2>&1};
|
# Check that the completion works when needed
|
||||||
like ($output, qr/__/ms, 'Custom column present in the output');
|
$output = qx{../src/task rc:bug.rc des:des 2>&1};
|
||||||
|
unlike ($output, qr/No matches./ms, 'Task found using its description');
|
||||||
|
|
||||||
$output = qx{../src/task rc:bug.rc add entrée interdite 2>&1};
|
$output = qx{../src/task rc:bug.rc add entrée interdite 2>&1};
|
||||||
$output = qx{../src/task rc:bug.rc list interdite 2>&1};
|
$output = qx{../src/task rc:bug.rc list interdite 2>&1};
|
||||||
|
|||||||
Reference in New Issue
Block a user