Branch: refs/heads/master
Home: https://github.com/dreamwidth/dw-free
Commit: 6e82fedde483857d20523ee031af18dec9a90765
https://github.com/dreamwidth/dw-free/commit/6e82fedde483857d20523ee031af18dec9a90765
Author: Nick Fagerlund <nick.fagerlund@gmail.com>
Date: 2020-06-06 (Sat, 06 Jun 2020)
Changed paths:
M cgi-bin/DW/Controller/Talk.pm
M cgi-bin/LJ/Comment.pm
M cgi-bin/LJ/Protocol.pm
M t/comment-create.t
Log Message:
-----------
Fix failing comment-create.t
- First problem: Legit!! I forgot to add an early exit to LJ::Comment::create
when it's called without a ditemid. Previously, this would blow up slightly
later during LJ::Talk::Post::init and then create would return a generic error,
but because LJ::Entry::new explodes without it, we need to handle it earlier.
Could result in uninformative errors in both LJ::Comment::create and the Talk
controller.
- Second problem: Annoying. The test is looking for specific error codes, which
means if you give it input that's illegal in MULTIPLE ways, you're really
testing the ORDER in which it checks things, which I struggle to believe anyone
actually cares about. Well, oh well.
Home: https://github.com/dreamwidth/dw-free
Commit: 6e82fedde483857d20523ee031af18dec9a90765
https://github.com/dreamwidth/dw-free/commit/6e82fedde483857d20523ee031af18dec9a90765
Author: Nick Fagerlund <nick.fagerlund@gmail.com>
Date: 2020-06-06 (Sat, 06 Jun 2020)
Changed paths:
M cgi-bin/DW/Controller/Talk.pm
M cgi-bin/LJ/Comment.pm
M cgi-bin/LJ/Protocol.pm
M t/comment-create.t
Log Message:
-----------
Fix failing comment-create.t
- First problem: Legit!! I forgot to add an early exit to LJ::Comment::create
when it's called without a ditemid. Previously, this would blow up slightly
later during LJ::Talk::Post::init and then create would return a generic error,
but because LJ::Entry::new explodes without it, we need to handle it earlier.
Could result in uninformative errors in both LJ::Comment::create and the Talk
controller.
- Second problem: Annoying. The test is looking for specific error codes, which
means if you give it input that's illegal in MULTIPLE ways, you're really
testing the ORDER in which it checks things, which I struggle to believe anyone
actually cares about. Well, oh well.