The Blog
Dec 10
0
CAPTCHA failed or How I Patched ruby-recaptcha In 5 Minutes For Success
We are using the ruby-recaptcha library here at Agora Games. I got a bug from our QA department that they wanted the CAPTCHA failure message to change from ‘Captcha failed.’ to ‘CAPTCHA failed.’.
I love that the Ruby and Rails community is so test-focused. I looked at the ruby-recaptcha issue tracker and there was already a patch for adding in customizable message support. However, with the patch, none of the tests passed. It was well within the library author’s rights to give that patch the middle finger.
So, what did I do? I applied the patch to my local copy of the ruby-repatcha library, fixed the tests, and submitted an updated patch.
Success.
You can find more hilarity over on my Twitter account, CzarneckiD.







