Skip to content

Test double documentation tweaks

gitlab-qa-bot requested to merge github/fork/jamesmartin/master into master

Created by: jamesmartin

Added a high level description of test doubles and the similarity between mock, stub and double methods. The old "when to use a mock, spy, stub, double, fake, etc. etc." question comes up quite a lot and I wanted something to point to when discussing these in the context of RSpec.

Also a small cuke feature addition to document defining multiple methods/return values as arguments to double.

My first pull request, so hopefully if this works more substantial updates will follow :)

Merge request reports