News for hackers. Stuff that matters.
Re:Learn how to test Rails using Test::Unit instead of Rspec by ollysb on Thursday March 21, 2013 @04:09PM (#5418511)
I use TDD most of the time when I'm developing, when I'm writing tests I'm really writing specs. I'm almost thinking out loud, what is this thing I'm about to create actually supposed to do? When writing like this the rspec syntax is far more natural, it matches the internal dialogue that's going on in my head. And the syntax is designed to encourage exactly this, thinking about the code you're about to write as though you were describing it to someone else.

There are no comments on this comment yet.