Created
September 2, 2021 22:08
-
-
Save thisismydesign/c855ae2e206a2fb3739eb1ae27af63bf to your computer and use it in GitHub Desktop.
Ruby: Use factories for your webmocks /3
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, body: { data: ... }) | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment