So far our convention has been
describe :method_name do
...
end
But this has some obvious drawback like separation of instance/class methods.
I hope we can now all agree on the unambiguous convention Mr Heinrich found in a great rspec presentation:
- use “description” for non-methods
- use pound “#method” for instance methods
- use dot “.method” for class methods
This also makes prettier specdoc output

1 comment
Comments feed for this article
2013-02-01 at 15:35:33
taimoor.changaiz
Reblogged this on Learning and commented:
Rspec Description block for methods and non-methods