Created
September 2, 2021 22:17
-
-
Save thisismydesign/cc293eec95efe9cc5523d36a79e7324f to your computer and use it in GitHub Desktop.
Ruby: Use factories for your webmocks /5
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
allow(XyzService).to receive(:get_entities).and_return( | |
build(:xyz_service_get_entities_response, page: 2, ids: 10..19, total: 32) | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment