From 573e0b2a655004f6089b9ce13bd6cf2746e65eb8 Mon Sep 17 00:00:00 2001 From: Louis-Claude Canon Date: Wed, 23 May 2012 17:17:38 +0200 Subject: [PATCH] Unit Test - Fix the purpose of the test for bug #1006: checking that completion is active when necessary. --- test/bug.1006.t | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test/bug.1006.t b/test/bug.1006.t index bd9981cb4..5451b2b9b 100755 --- a/test/bug.1006.t +++ b/test/bug.1006.t @@ -43,13 +43,15 @@ if (open my $fh, '>', 'bug.rc') # This is because DOM elements are checked before standard words when strings # 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 1 annotate des 2>&1}; my $output = qx{../src/task rc:bug.rc 1 info 2>&1}; 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}; -like ($output, qr/__/ms, 'Custom column present in the output'); +# Check that the completion works when needed +$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 list interdite 2>&1};