mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-19 19:03:07 +02:00
Unit Test
- Modified rc.t to use the lightweight _version command, instead of invoking all the default command machinery, for a simple rc creation.
This commit is contained in:
parent
3e7c323086
commit
6cd6910968
1 changed files with 2 additions and 2 deletions
|
@ -37,7 +37,7 @@ delete $ENV{'TASKRC'};
|
|||
# Create the rc file, using rc.name:value.
|
||||
unlink 'foo.rc';
|
||||
rmtree 'foo', 0, 0;
|
||||
qx{echo 'y'|../src/task rc:foo.rc rc.data.location:foo 2>&1};
|
||||
qx{echo 'y'|../src/task rc:foo.rc rc.data.location:foo _version 2>&1};
|
||||
|
||||
ok (-r 'foo.rc', 'Created default rc file');
|
||||
ok (-d 'foo', 'Created default data directory');
|
||||
|
@ -49,7 +49,7 @@ unlink 'foo.rc';
|
|||
ok (!-r 'foo.rc', 'Removed foo.rc');
|
||||
|
||||
# Do it all again, with rc.name=value.
|
||||
qx{echo 'y'|../src/task rc:foo.rc rc.data.location:foo 2>&1};
|
||||
qx{echo 'y'|../src/task rc:foo.rc rc.data.location:foo _version 2>&1};
|
||||
|
||||
ok (-r 'foo.rc', 'Created default rc file');
|
||||
ok (-d 'foo', 'Created default data directory');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue