Skip to content
This repository has been archived by the owner on Apr 15, 2019. It is now read-only.

Standardise stubbing - Closes #306 #336

Merged
merged 3 commits into from
Nov 13, 2017
Merged

Conversation

willclarktech
Copy link
Contributor

@willclarktech willclarktech commented Nov 10, 2017

Closes #306
Merge #328 first

From now on, step definitions should assume that methods are already stubbed, and the actual stubbing should happen in a setup function. The exception is standalone stubs/spies, created directly (i.e. sandbox.stub() or sandbox.spy(), in order e.g. to be passed as an argument to a function being tested. In such cases there's nothing to stub in the setup phase.

Where an existing object is having its methods stubbed, not where a standalone stub is created e.g
to pass as an argument to a function.
@willclarktech willclarktech merged commit 6ab713c into 0.3.0 Nov 13, 2017
@willclarktech willclarktech deleted the 306-standardise_stubbing branch November 13, 2017 12:43
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants