mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Unit Tests
- Fixed bug where version.t would not run unless a .taskrc file existed.
This commit is contained in:
parent
1f3230716f
commit
26e2b17a44
1 changed files with 8 additions and 2 deletions
|
@ -28,12 +28,18 @@
|
|||
|
||||
use strict;
|
||||
use warnings;
|
||||
use Test::More tests => 1;
|
||||
use Test::More tests => 2;
|
||||
|
||||
qx{touch version.rc};
|
||||
|
||||
my $year = (localtime (time))[5] + 1900;
|
||||
|
||||
my $output = qx{../src/task version 2>&1};
|
||||
my $output = qx{../src/task rc:version.rc version 2>&1};
|
||||
like ($output, qr/Copyright \(C\) \d{4} - $year/, 'Copyright is current');
|
||||
|
||||
# Cleanup.
|
||||
unlink 'version.rc';
|
||||
ok (!-r 'version.rc', 'Removed version.rc');
|
||||
|
||||
exit 0;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue