From bb78f61d2a7993277f2ce7c0542dcc5011e653d5 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Fri, 26 Jun 2009 00:31:30 -0400 Subject: [PATCH] Unit Tests - Fixed obsolete test in basic.t --- src/tests/basic.t | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/tests/basic.t b/src/tests/basic.t index 475874a7d..25294b0ff 100755 --- a/src/tests/basic.t +++ b/src/tests/basic.t @@ -28,7 +28,7 @@ use strict; use warnings; -use Test::More tests => 7; +use Test::More tests => 6; # Create the rc file. if (open my $fh, '>', 'basic.rc') @@ -40,8 +40,7 @@ if (open my $fh, '>', 'basic.rc') # Test the usage command. my $output = qx{../task rc:basic.rc}; -like ($output, qr/Usage: task/, 'usage'); -like ($output, qr/http:\/\/taskwarrior\.org/, 'usage - url'); +like ($output, qr/You must specify a command, or a task ID to modify/, 'missing command and ID'); # Test the version command. $output = qx{../task rc:basic.rc version};