|
|
|
|
|
by ollysb
4844 days ago
|
|
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. |
|