The Disco Blog

Can you dig it?

Running Individual Tests in Rails

Every now and again, I find myself struggling to remember how to execute a single test in Rails. While I have Guard running the entire test suite anytime a change is detected, there are times when I want to focus solely on one test. Accordingly, Flavio Castelli has a great blog entry detailing the manifold ways one can execute a single test using Rake and/or Ruby.