I noticed that this module has spec tests, but they were incomplete and outdated. This weekend, I've managed to update the specs to almost complete coverage and fixed any test that failed (in most cases by updating the test instead of the code).
Apologies for the size of this pull request.
Please do setup CI for this repository, like Travis. This way it is much more likely that the tests will remain up-to-date.
I noticed that this module has spec tests, but they were incomplete and outdated. This weekend, I've managed to update the specs to almost complete coverage and fixed any test that failed (in most cases by updating the test instead of the code).
Apologies for the size of this pull request.
Please do setup CI for this repository, like Travis. This way it is much more likely that the tests will remain up-to-date.