This post originated from an RSS feed registered with Agile Buzz
by Jared Richardson.
Original Post: Adding Captcha to Rails, Then Fixing the Tests
Feed Title: Jared's Weblog
Feed URL: http://www.jaredrichardson.net/blog/index.rss
Feed Description: Jared's weblog.
The web site was created after the launch of the book "Ship It!" and discusses issues from Continuous Integration to web hosting providers.
I needed Captcha in a Rails app recently and found a great tutorial on the web. It was easy to add and use once we got RMagic installed. But RMagic was horrible... but that's another blog entry.
I used this page to add the Captcha bits. It's a nice write up. Just follow the directions and you'll be up and running.
However, the Captcha plugin broke a few of our automated tests. So I started to dig in again, but then found another page on the web. I love it when someone else solves a problem for me.
Here's the solution to the Captcha interfering with your tests. I opted for the solution in the comments. I used this line: