Tag Archives: rspec

Test names and readability

What’s in a Name? It’s important to choose a useful name for a test. If tests are documentation, test names are the chapter headings. Test Names Should Not Include Should There’s nothing wrong with the word “should.” It’s just not … Continue reading

Posted in Uncategorized | Tagged , , , | Leave a comment

How I Test Controllers

I’ve been trying to improve the specs I write lately. My method before was mostly copying and pasting from my past projects. Somewhere way back I adapted them from an early version of Michael Hartl’s Rails Tutorial, making various modifications … Continue reading

Posted in Uncategorized | Tagged , , , , | Leave a comment