mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Unit Test
- Reworded new error message to more closely match an old error message, modified unit test accordingly.
This commit is contained in:
parent
949e702c98
commit
00125c19d1
2 changed files with 2 additions and 2 deletions
|
@ -87,7 +87,7 @@ Column* Column::factory (const std::string& name, const std::string& report)
|
||||||
else if (column_name == "uuid") column = new ColumnUUID ();
|
else if (column_name == "uuid") column = new ColumnUUID ();
|
||||||
else if (column_name == "wait") column = new ColumnWait ();
|
else if (column_name == "wait") column = new ColumnWait ();
|
||||||
else
|
else
|
||||||
throw std::string ("Unrecognized column type '") + column_name + "'";
|
throw std::string ("Unrecognized column name '") + column_name + "'";
|
||||||
|
|
||||||
column->setReport (report);
|
column->setReport (report);
|
||||||
column->setStyle (column_style);
|
column->setStyle (column_style);
|
||||||
|
|
|
@ -44,7 +44,7 @@ if (open my $fh, '>', 'custom.rc')
|
||||||
|
|
||||||
# Generate the usage screen, and locate the custom report on it.
|
# Generate the usage screen, and locate the custom report on it.
|
||||||
my $output = qx{../src/task rc:custom.rc foo 2>&1};
|
my $output = qx{../src/task rc:custom.rc foo 2>&1};
|
||||||
like ($output, qr/Unrecognized column name: foo\.\n/, 'custom report spotted invalid column');
|
like ($output, qr/Unrecognized column name 'foo'\.\n/, 'custom report spotted invalid column');
|
||||||
|
|
||||||
# Cleanup.
|
# Cleanup.
|
||||||
unlink 'pending.data';
|
unlink 'pending.data';
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue