When creating a Test Double in RSpec, I have the option to pass in a string which seems to "name" the double. I'm finding it hard to find documentation about this argument, the top result on google doesn't seem to mention it.
I made a test to play around with it and as far as I can tell it just used to for presentation/printing purposes. Does it have any use outside of this?

Aucun commentaire:
Enregistrer un commentaire