Bug #1028
- Fixed bug #1028, so that UDA durations are stored in seconds, not in raw form (thank to Uli Martens).
This commit is contained in:
@@ -105,6 +105,8 @@ Bugs
|
||||
was completed (thanks to Arkady Grudzinsky).
|
||||
+ Fixed bug #1023, which applied default.project and default.priority during
|
||||
modification (thanks to Christoph Lange).
|
||||
+ Fixed bug #1028, so that UDA durations are stored in seconds, not in raw form
|
||||
(thank to Uli Martens).
|
||||
|
||||
------ old releases ------------------------------
|
||||
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
|
||||
use strict;
|
||||
use warnings;
|
||||
use Test::More tests => 5;
|
||||
use Test::More tests => 6;
|
||||
|
||||
# Create the rc file.
|
||||
if (open my $fh, '>', 'uda.rc')
|
||||
@@ -52,6 +52,10 @@ my $output = qx{../src/task rc:uda.rc uda 2>&1};
|
||||
like ($output, qr/1\s+1d\s+with/, 'UDA duration stored');
|
||||
like ($output, qr/2\s+without/, 'UDA duration blank');
|
||||
|
||||
# Ensure 'extra' is stored as seconds.
|
||||
$output = qx{../src/task rc:uda.rc 1 export 2>&1};
|
||||
like ($output, qr/"extra":"86400"/, 'UDA duration stored in seconds');
|
||||
|
||||
# Add bad data.
|
||||
$output = qx{../src/task rc:uda.rc add bad extra:unrecognized_duration 2>&1};
|
||||
unlike ($output, qr/Created task \d+/, 'UDA duration bad data not accepted');
|
||||
|
||||
Reference in New Issue
Block a user