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.
Written by Steven Shingler
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Ruby
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#