Rails Capybara Feature Testing: A Diary of Pitfalls

If I had to describe today in one line, it would be “I learned Capybara for the first time and immediately stepped on a landmine.” I spent a full six hours (or more) writing two simple tests, and ran into all sorts of funny landmines along the way. If I didn’t write a post about this disastrous day, I’d be too angry to sleep tonight. To be clear up front: this is my first time writing tests, so some of my understanding may be wrong or out of date. Please leave a comment and I’ll fix it right away. This isn’t a technical article. It’s a rant (angry!). ...

January 16, 2017 · 3 min