The problem was that upon edit, the previous instance of the question wasn't fed to the form. Thus, the form's rating was set to 1. The "follows" themselves were still in the database.
I also created a test that fails without the bug fix and passes with it. I'll be happy if you can review the test as well, because some of the code there wasn't intuitive.
Lastly, this is my first contribution to an open source project, so I hope I got everything alright, process-wise.
The problem was that upon edit, the previous instance of the question wasn't fed to the form. Thus, the form's rating was set to 1. The "follows" themselves were still in the database.
I also created a test that fails without the bug fix and passes with it. I'll be happy if you can review the test as well, because some of the code there wasn't intuitive.
Lastly, this is my first contribution to an open source project, so I hope I got everything alright, process-wise.