Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use explicit type for mock body #79

Merged
merged 2 commits into from
Nov 30, 2014
Merged

use explicit type for mock body #79

merged 2 commits into from
Nov 30, 2014

Conversation

koenpunt
Copy link
Contributor

a hash is ambiguous, and triggers an error since webmock v1.20.2

see bblimke/webmock#427 for more information

@koenpunt koenpunt changed the title use implicit type for mock body use explicit type for mock body Nov 29, 2014
@dblock
Copy link
Collaborator

dblock commented Nov 30, 2014

This breaks the build, please fix.

to correctly handle the serialized JSON
@koenpunt
Copy link
Contributor Author

I think my changes are not the actual issue here.

The problem is that Faraday handles the JSON serialization, and Webmock removed support for hashes as response in a minor version update.

But I have a solution, I have replaced all webmock stubbing with faraday stubbing (see last commit).

@dblock
Copy link
Collaborator

dblock commented Nov 30, 2014

I like it, merging. Thank you.

dblock added a commit that referenced this pull request Nov 30, 2014
@dblock dblock merged commit 278ae80 into codegram:master Nov 30, 2014
@koenpunt koenpunt deleted the fix-webmock-invalid-body branch November 30, 2014 23:24
@koenpunt
Copy link
Contributor Author

You're welcome, I'll look into updating the features as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants