Closed Thulinma closed 3 years ago
So, if you want to be fancy, you could add a test for this :3
I could, yes. If somebody had written a test for this to begin with, perhaps there would not have been a bug, even! 😏
Test added. Just ensures pushrules's from_json and to_json are identical; which is a pretty simplistic test, but I can confirm it fails without the fix. So... good enough, I say!
Fixes missing parsing for rule_id. Generating was already implemented, looks like this was simply a forgotten line.