Skip to content
This repository has been archived by the owner on Nov 21, 2018. It is now read-only.

Remove forced stub + response check in producer tests #51

Closed
kayvonghaffari opened this issue Nov 13, 2015 · 0 comments
Closed

Remove forced stub + response check in producer tests #51

kayvonghaffari opened this issue Nov 13, 2015 · 0 comments
Assignees
Milestone

Comments

@kayvonghaffari
Copy link
Contributor

There are instances where the input of a request doesn't determine all of the output (for example: token responses in create methods).

The one writing the producer tests will need to explicitly follow this pattern in their tests for cases like this.

it { expect(stub_response).to include(token: "ATstubToken") }
it { is_expected.to include(stub_response.merge(token: /\AAT\w+\z/)) }
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants