To add a collaborator to this project you will need to use the Relish gem to add the collaborator via a terminal command. Soon you'll be able to also add collaborators here!More about adding a collaborator
In addition, you can provide a block implementation to respond in any manner you wish.
Note: for simplicity, the examples here use
allow rather than
expect, but these APIs apply equally to both cases.
- Returning a value
- Raising an error
- Calling the original implementation
- Wrapping the original implementation
- Block implementation
Last published over 5 years ago by myronmarston.
RSpec Mocks settings