Unit Tests

- Corrected all unit tests that used the old syntax "task done 1" to
  use the new syntax "task 1 done".  Similarly, "task 1 ..." is now
  "task 1 modify ...".
This commit is contained in:
Paul Beckingham 2011-07-31 19:03:19 -04:00
parent 9ce7f63d85
commit ac7bcc81ee
48 changed files with 177 additions and 177 deletions

View file

@ -58,12 +58,12 @@ like ($output, qr/Project 'foo' is 25% complete \(3 of 4 tasks remaining\)\./, '
$output = qx{../src/task rc:pro.rc 2 delete};
like ($output, qr/The project 'foo' has changed\. Project 'foo' is 33% complete \(2 of 3 tasks remaining\)\./, 'delete two');
$output = qx{../src/task rc:pro.rc 3 pro:bar};
$output = qx{../src/task rc:pro.rc 3 modify pro:bar};
like ($output, qr/The project 'foo' has changed\. Project 'foo' is 50% complete \(1 of 2 tasks remaining\)\./, 'change project');
like ($output, qr/The project 'bar' has changed\. Project 'bar' is 0% complete \(1 of 1 tasks remaining\)\./, 'change project');
# Test projects with spaces in them.
$output = qx{../src/task rc:pro.rc 3 pro:"foo bar"};
$output = qx{../src/task rc:pro.rc 3 modify pro:"foo bar"};
like ($output, qr/The project 'foo bar' has changed\./, 'project with spaces');
# Cleanup.