Last Updated: February 25, 2016
·
646
· sshingler

Rspec: what context and describe are for

I've never been super-clear on how to use context and describe in Rspec. A colleague just clarified it really nicely for me:

Context is an English version of what the setup is for that group of specs. The nouns around your specs.

Describe is for the verbs (methods) and/or the nouns (objects) which you are testing.